Commit f7c7c7e6 authored by Luciano Coelho's avatar Luciano Coelho

wl12xx: strict_stroul introduced converted to kstrtoul

One new patch applied added a couple of new strict_strtoul calls.
Converted those to kstroul().
Signed-off-by: default avatarLuciano Coelho <coelho@ti.com>
parent 86c438f4
...@@ -321,7 +321,7 @@ static ssize_t dtim_interval_write(struct file *file, ...@@ -321,7 +321,7 @@ static ssize_t dtim_interval_write(struct file *file,
return -EFAULT; return -EFAULT;
buf[len] = '\0'; buf[len] = '\0';
ret = strict_strtoul(buf, 0, &value); ret = kstrtoul(buf, 0, &value);
if (ret < 0) { if (ret < 0) {
wl1271_warning("illegal value for dtim_interval"); wl1271_warning("illegal value for dtim_interval");
return -EINVAL; return -EINVAL;
...@@ -386,7 +386,7 @@ static ssize_t beacon_interval_write(struct file *file, ...@@ -386,7 +386,7 @@ static ssize_t beacon_interval_write(struct file *file,
return -EFAULT; return -EFAULT;
buf[len] = '\0'; buf[len] = '\0';
ret = strict_strtoul(buf, 0, &value); ret = kstrtoul(buf, 0, &value);
if (ret < 0) { if (ret < 0) {
wl1271_warning("illegal value for beacon_interval"); wl1271_warning("illegal value for beacon_interval");
return -EINVAL; return -EINVAL;
......
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