diff options
author | Julia Lawall <julia@diku.dk> | 2011-11-06 08:26:48 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-11-09 16:14:10 -0500 |
commit | 61e3f32c11c35e5a54d37d98505cb29db639cfdb (patch) | |
tree | 8ec8a6f6a2f089a1bf0e840b3c6609b3961cbda8 | |
parent | a729cff8ad5120d0d5172ec28a3843d1cb458f79 (diff) |
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 883996b2f99f..00cefcb493eb 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, | |||
190 | return -EFAULT; | 190 | return -EFAULT; |
191 | buf[len] = '\0'; | 191 | buf[len] = '\0'; |
192 | 192 | ||
193 | ret = strict_strtoul(buf, 0, &val); | 193 | ret = kstrtoul(buf, 0, &val); |
194 | 194 | ||
195 | if (ret) | 195 | if (ret) |
196 | return -EINVAL; | 196 | return -EINVAL; |