Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 61e3f32c authored by Julia Lawall's avatar Julia Lawall Committed by John W. Linville
Browse files

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: default avatarJulia Lawall <julia@diku.dk>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent a729cff8
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -190,7 +190,7 @@ static ssize_t uapsd_max_sp_len_write(struct file *file,
		return -EFAULT;
		return -EFAULT;
	buf[len] = '\0';
	buf[len] = '\0';


	ret = strict_strtoul(buf, 0, &val);
	ret = kstrtoul(buf, 0, &val);


	if (ret)
	if (ret)
		return -EINVAL;
		return -EINVAL;