Skip to contentSkip to conversation

param-convert-some-on-off-users-to-strtobool fix

PATCH New Kees Cook 1 participant 1 message Feb 6, 2016 PowerPC

lore
Share & tools
lore

Kees Cook

author
#0 lore raw

PATCH 1/1 param-convert-some-on-off-users-to-strtobool fix

This converts a missed __setup return (and silences the build warning it was causing).

---
 arch/powerpc/kernel/rtasd.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
arch/powerpc/kernel/rtasd.c +1 -3
index 0ae5cb84d4e2..aa610ce8742f 100644
@@ -592,8 +592,6 @@ __setup("surveillance=", surveillance_setup);
 
 static int __init rtasmsgs_setup(char *str)
 {
-	kstrtobool(str, &full_rtas_msgs);
-
-	return 1;
+	return (kstrtobool(str, &full_rtas_msgs) == 0);
 }
 __setup("rtasmsgs=", rtasmsgs_setup);
Signature · 6 lines
2.6.3


-- 
Kees Cook
Chrome OS & Brillo Security