Commit e343d3ea authored by Arend van Spriel's avatar Arend van Spriel Committed by Greg Kroah-Hartman

staging: brcm80211: replace simple_strtoul with strict_strtoul

By checkpatch recommendation using strict_strtoul now.
Reviewed-by: default avatarRoland Vossen <rvossen@broadcom.com>
Reviewed-by: default avatarBrett Rudley <brudley@broadcom.com>
Signed-off-by: default avatarArend van Spriel <arend@broadcom.com>
Reviewed-by: default avatarDan Carpenter <error27@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 7ae92624
...@@ -1293,18 +1293,22 @@ static int __init wl_module_init(void) ...@@ -1293,18 +1293,22 @@ static int __init wl_module_init(void)
wl_msg_level = msglevel; wl_msg_level = msglevel;
else { else {
char *var = getvar(NULL, "wl_msglevel"); char *var = getvar(NULL, "wl_msglevel");
if (var) if (var) {
wl_msg_level = simple_strtoul(var, NULL, 0); unsigned long value;
}
{ (void)strict_strtoul(var, 0, &value);
extern u32 phyhal_msg_level; wl_msg_level = value;
}
if (phymsglevel != 0xdeadbeef) }
phyhal_msg_level = phymsglevel; if (phymsglevel != 0xdeadbeef)
else { phyhal_msg_level = phymsglevel;
char *var = getvar(NULL, "phy_msglevel"); else {
if (var) char *var = getvar(NULL, "phy_msglevel");
phyhal_msg_level = simple_strtoul(var, NULL, 0); if (var) {
unsigned long value;
(void)strict_strtoul(var, 0, &value);
phyhal_msg_level = value;
} }
} }
#endif /* BCMDBG */ #endif /* BCMDBG */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment