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)
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 (phymsglevel != 0xdeadbeef)
phyhal_msg_level = phymsglevel;
else {
char *var = getvar(NULL, "phy_msglevel");
if (var)
phyhal_msg_level = simple_strtoul(var, NULL, 0);
if (var) {
unsigned long value;
(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 */
......
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