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

Commit 958d9072 authored by Heiko Carstens's avatar Heiko Carstens Committed by Martin Schwidefsky
Browse files

s390: replace remaining strict_strtoul() with kstrtoul()



Replace the last two strict_strtoul() with kstrtoul().

Signed-off-by: default avatarHeiko Carstens <heiko.carstens@de.ibm.com>
Signed-off-by: default avatarMartin Schwidefsky <schwidefsky@de.ibm.com>
parent 0178722b
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1299,7 +1299,7 @@ int regs_query_register_offset(const char *name)


	if (!name || *name != 'r')
	if (!name || *name != 'r')
		return -EINVAL;
		return -EINVAL;
	if (strict_strtoul(name + 1, 10, &offset))
	if (kstrtoul(name + 1, 10, &offset))
		return -EINVAL;
		return -EINVAL;
	if (offset >= NUM_GPRS)
	if (offset >= NUM_GPRS)
		return -EINVAL;
		return -EINVAL;
+1 −1
Original line number Original line Diff line number Diff line
@@ -63,7 +63,7 @@ static int __init vdso_setup(char *s)
	else if (strncmp(s, "off", 4) == 0)
	else if (strncmp(s, "off", 4) == 0)
		vdso_enabled = 0;
		vdso_enabled = 0;
	else {
	else {
		rc = strict_strtoul(s, 0, &val);
		rc = kstrtoul(s, 0, &val);
		vdso_enabled = rc ? 0 : !!val;
		vdso_enabled = rc ? 0 : !!val;
	}
	}
	return !rc;
	return !rc;