net: remove obsolete simple_strto<foo>
This patch replace the obsolete simple_strto<foo> with kstrto<foo> Signed-off-by: Abhijit Pawar <abhi.c.pawar@gmail.com> Acked-by: Neil Horman <nhorman@tuxdriver.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
008d427807
commit
4b5511ebc7
4 changed files with 18 additions and 4 deletions
|
@ -221,6 +221,9 @@ static ssize_t sta_agg_status_write(struct file *file, const char __user *userbu
|
|||
return -EINVAL;
|
||||
|
||||
tid = simple_strtoul(buf, NULL, 0);
|
||||
ret = kstrtoul(buf, 0, &tid);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
if (tid >= IEEE80211_NUM_TIDS)
|
||||
return -EINVAL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue