Re: [PATCH5 2/2] staging: brcm80211: replace simple_strtoul with strict_strtoul

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Mar 02, 2011 at 09:08:44AM +0100, Arend van Spriel wrote:
> +		if (var) {
> +			unsigned long value;
> +
> +			strict_strtoul(var, 0,
> +				(unsigned long *)&value);

No cast needed.

> +			wl_msg_level = value;
> +		}
> +	}
> +	if (phymsglevel != 0xdeadbeef)
> +		phyhal_msg_level = phymsglevel;
> +	else {
> +		char *var = getvar(NULL, "phy_msglevel");
> +		if (var) {
> +			unsigned long value;
> +
> +			strict_strtoul(var, 0,
> +				(unsigned long *)&value);

No cast needed.

regards,
dan carpenter

> +			phyhal_msg_level = value;
>  		}
>  	}
>  #endif				/* BCMDBG */
> -- 

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel


[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux