summaryrefslogtreecommitdiffstats
path: root/arch/s390/kernel/ipl.c
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2023-01-14 16:08:22 +0100
committerHeiko Carstens <hca@linux.ibm.com>2023-01-22 18:42:34 +0100
commitc313094491150bae23b02270e83c72bb97ef2ab2 (patch)
treec826d988088ee9f19a11a06a0f950184ba185984 /arch/s390/kernel/ipl.c
parent706a91be38837451977491aa7465e98edf6d35d8 (diff)
downloadlinux-stable-c313094491150bae23b02270e83c72bb97ef2ab2.tar.gz
linux-stable-c313094491150bae23b02270e83c72bb97ef2ab2.tar.bz2
linux-stable-c313094491150bae23b02270e83c72bb97ef2ab2.zip
s390/ipl: use kstrtobool() instead of strtobool()
strtobool() is the same as kstrtobool(). However, the latter is more used within the kernel. In order to remove strtobool() and slightly simplify kstrtox.h, switch to the other function name. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Link: https://lore.kernel.org/r/58a3ed2e21903a93dfd742943b1e6936863ca037.1673708887.git.christophe.jaillet@wanadoo.fr Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'arch/s390/kernel/ipl.c')
-rw-r--r--arch/s390/kernel/ipl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/kernel/ipl.c b/arch/s390/kernel/ipl.c
index b74b728c29f8..406766c894fb 100644
--- a/arch/s390/kernel/ipl.c
+++ b/arch/s390/kernel/ipl.c
@@ -1194,7 +1194,7 @@ static ssize_t reipl_eckd_clear_store(struct kobject *kobj,
struct kobj_attribute *attr,
const char *buf, size_t len)
{
- if (strtobool(buf, &reipl_eckd_clear) < 0)
+ if (kstrtobool(buf, &reipl_eckd_clear) < 0)
return -EINVAL;
return len;
}