diff options
author | Abhijit Pawar <abhi.c.pawar@gmail.com> | 2012-12-09 23:12:28 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-12-10 19:09:00 (GMT) |
commit | 4b5511ebc7e1cf94e4f13be19c2cf3e90edc3395 (patch) | |
tree | e6882f930d0952aa08162fba55b166a87cebf410 /net/mac80211 | |
parent | 008d4278072216bd2459a6e41b07b688fe95ee83 (diff) | |
download | linux-4b5511ebc7e1cf94e4f13be19c2cf3e90edc3395.tar.xz |
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>
Diffstat (limited to 'net/mac80211')
-rw-r--r-- | net/mac80211/debugfs_sta.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/net/mac80211/debugfs_sta.c b/net/mac80211/debugfs_sta.c index 49a1c70..0dedb4b 100644 --- a/net/mac80211/debugfs_sta.c +++ b/net/mac80211/debugfs_sta.c @@ -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; |