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:
parent
7ae9262496
commit
e343d3ea73
1 changed files with 15 additions and 11 deletions
|
@ -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;
|
||||||
}
|
|
||||||
{
|
|
||||||
extern u32 phyhal_msg_level;
|
|
||||||
|
|
||||||
if (phymsglevel != 0xdeadbeef)
|
(void)strict_strtoul(var, 0, &value);
|
||||||
phyhal_msg_level = phymsglevel;
|
wl_msg_level = value;
|
||||||
else {
|
}
|
||||||
char *var = getvar(NULL, "phy_msglevel");
|
}
|
||||||
if (var)
|
if (phymsglevel != 0xdeadbeef)
|
||||||
phyhal_msg_level = simple_strtoul(var, NULL, 0);
|
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 */
|
#endif /* BCMDBG */
|
||||||
|
|
Loading…
Reference in a new issue