diff options
author | Julia Lawall <julia@diku.dk> | 2011-11-06 14:26:48 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-11-09 16:14:10 -0500 |
commit | 61e3f32c11c35e5a54d37d98505cb29db639cfdb (patch) | |
tree | 8ec8a6f6a2f089a1bf0e840b3c6609b3961cbda8 | |
parent | a729cff8ad5120d0d5172ec28a3843d1cb458f79 (diff) | |
download | op-kernel-dev-61e3f32c11c35e5a54d37d98505cb29db639cfdb.zip op-kernel-dev-61e3f32c11c35e5a54d37d98505cb29db639cfdb.tar.gz |
net/mac80211/debugfs.c: use kstrtoul, etc
Use kstrtoul, etc instead of the now deprecated strict_strtoul, etc.
A semantic patch rule for the kstrtoul case is as follows:
(http://coccinelle.lip6.fr/)
// <smpl>
@@
expression a,b;
{int,long} *c;
@@
-strict_strtoul
+kstrtoul
(a,b,c)
// </smpl>
Signed-off-by: Julia Lawall <julia@diku.dk>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | net/mac80211/debugfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/debugfs.c b/net/mac80211/debugfs.c index 883996b..00cefcb 100644 --- a/net/mac80211/debugfs.c +++ b/net/mac80211/debugfs.c @@ -190,7 +190,7 @@ static ssize_t uapsd_max_sp_len_write(struct file *file, return -EFAULT; buf[len] = '\0'; - ret = strict_strtoul(buf, 0, &val); + ret = kstrtoul(buf, 0, &val); if (ret) return -EINVAL; |