staging: brcm80211: replace simple_strtoul with strict_strtoul

By checkpatch recommendation using strict_strtoul now.

Reviewed-by: Roland Vossen <rvossen@broadcom.com>
Reviewed-by: Brett Rudley <brudley@broadcom.com>
Signed-off-by: Arend van Spriel <arend@broadcom.com>
Reviewed-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Arend van Spriel 2011-03-02 17:01:37 +01:00 committed by Greg Kroah-Hartman
parent 7ae9262496
commit e343d3ea73

View File

@ -1293,18 +1293,22 @@ static int __init wl_module_init(void)
wl_msg_level = msglevel;
else {
char *var = getvar(NULL, "wl_msglevel");
if (var)
wl_msg_level = simple_strtoul(var, NULL, 0);
}
{
extern u32 phyhal_msg_level;
if (var) {
unsigned long value;
if (phymsglevel != 0xdeadbeef)
phyhal_msg_level = phymsglevel;
else {
char *var = getvar(NULL, "phy_msglevel");
if (var)
phyhal_msg_level = simple_strtoul(var, NULL, 0);
(void)strict_strtoul(var, 0, &value);
wl_msg_level = value;
}
}
if (phymsglevel != 0xdeadbeef)
phyhal_msg_level = phymsglevel;
else {
char *var = getvar(NULL, "phy_msglevel");
if (var) {
unsigned long value;
(void)strict_strtoul(var, 0, &value);
phyhal_msg_level = value;
}
}
#endif /* BCMDBG */