net/mac80211/debugfs.c: use kstrtoul, etc
authorJulia Lawall <julia@diku.dk>
Sun, 6 Nov 2011 13:26:48 +0000 (14:26 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 9 Nov 2011 21:14:10 +0000 (16:14 -0500)
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>
net/mac80211/debugfs.c

index 883996b2f99fae26bd21e53d1ce12d7b322a8608..00cefcb493ebea1fb0cd8ba0fe7955ad424e5175 100644 (file)
@@ -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;