diff options
author | 2011-11-06 14:26:49 +0100 | |
---|---|---|
committer | 2011-11-09 16:14:10 -0500 | |
commit | 1bac92cac1d8417bf023571b1608b9793c4ecf86 (patch) | |
tree | fa44a537fbb990135ba13568490a0e0f1e59dce6 /net | |
parent | net/mac80211/debugfs.c: use kstrtoul, etc (diff) | |
download | linux-1bac92cac1d8417bf023571b1608b9793c4ecf86.tar.gz linux-1bac92cac1d8417bf023571b1608b9793c4ecf86.tar.bz2 linux-1bac92cac1d8417bf023571b1608b9793c4ecf86.zip |
net/rfkill/core.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>
Diffstat (limited to 'net')
-rw-r--r-- | net/rfkill/core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/rfkill/core.c b/net/rfkill/core.c index 5be19575c340..354760ebbbd2 100644 --- a/net/rfkill/core.c +++ b/net/rfkill/core.c @@ -644,7 +644,7 @@ static ssize_t rfkill_soft_store(struct device *dev, if (!capable(CAP_NET_ADMIN)) return -EPERM; - err = strict_strtoul(buf, 0, &state); + err = kstrtoul(buf, 0, &state); if (err) return err; @@ -688,7 +688,7 @@ static ssize_t rfkill_state_store(struct device *dev, if (!capable(CAP_NET_ADMIN)) return -EPERM; - err = strict_strtoul(buf, 0, &state); + err = kstrtoul(buf, 0, &state); if (err) return err; |