Commit 1bac92cac1d8417bf023571b1608b9793c4ecf86

Authored by Julia Lawall
Committed by John W. Linville
1 parent 61e3f32c11

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>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

... ... @@ -644,7 +644,7 @@
644 644 if (!capable(CAP_NET_ADMIN))
645 645 return -EPERM;
646 646  
647   - err = strict_strtoul(buf, 0, &state);
  647 + err = kstrtoul(buf, 0, &state);
648 648 if (err)
649 649 return err;
650 650  
... ... @@ -688,7 +688,7 @@
688 688 if (!capable(CAP_NET_ADMIN))
689 689 return -EPERM;
690 690  
691   - err = strict_strtoul(buf, 0, &state);
  691 + err = kstrtoul(buf, 0, &state);
692 692 if (err)
693 693 return err;
694 694