You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
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:
committed by
David S. Miller
parent
008d427807
commit
4b5511ebc7
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user