projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
706a91b
)
s390/ipl: use kstrtobool() instead of strtobool()
author
Christophe JAILLET
<christophe.jaillet@wanadoo.fr>
Sat, 14 Jan 2023 15:08:22 +0000
(16:08 +0100)
committer
Heiko Carstens
<hca@linux.ibm.com>
Sun, 22 Jan 2023 17:42:34 +0000
(18:42 +0100)
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>
arch/s390/kernel/ipl.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/s390/kernel/ipl.c
b/arch/s390/kernel/ipl.c
index b74b728c29f81e24976ae013cf075b023b58b249..406766c894fb57278a82fb4a4fb064fa39ef9ca5 100644
(file)
--- 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 (
k
strtobool(buf, &reipl_eckd_clear) < 0)
return -EINVAL;
return len;
}