macintosh/ams-input: Use true and false for boolean values
PATCH 1/1 macintosh/ams-input: Use true and false for boolean values
Assign true or false to boolean variables instead of an integer value.
This issue was detected with the help of Coccinelle
Signed-off-by Gustavo A. R. Silva <[email protected]>
--- drivers/macintosh/ams/ams-input.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/macintosh/ams/ams-input.c +2 -2
@@ -91,7 +91,7 @@ static int ams_input_enable(void)return error; } - joystick =1 ; + joystick = true;return 0 ; }
@@ -104,7 +104,7 @@ static void ams_input_disable(void) ams_info.idev =NULL ; } - joystick =0 ; + joystick = false; } static ssize_t ams_input_show_joystick(struct device *dev,
Signature · 1 line
2.7.4
Quoted 5 lines · Gustavo A. R. Silva
Assign true or false to boolean variables instead of an integer value.
This issue was detected with the help of Coccinelle
Signed-off-by Gustavo A. R. Silva <[email protected]>
Reviewed-by Michael Hanselmann <[email protected]>
Michael Ellerman
AppliedQuoted 6 lines · Gustavo A. R. Silva
Assign true or false to boolean variables instead of an integer value.
This issue was detected with the help of Coccinelle
Signed-off-by Gustavo A. R. Silva <[email protected]>Reviewed-by Michael Hanselmann <[email protected]>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/516c32f64f144721ca05b881737e44
cheers