From: Gustavo A. R. Silva Date: Wed, 24 Jan 2018 01:48:46 +0000 (-0600) Subject: macintosh/ams-input: Use true and false for boolean values X-Git-Tag: v4.16-rc1~93^2~1 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=516c32f64f144721ca05b881737e4425932827c5;p=users%2Fdwmw2%2Flinux.git 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 Reviewed-by: Michael Hanselmann Signed-off-by: Michael Ellerman --- diff --git a/drivers/macintosh/ams/ams-input.c b/drivers/macintosh/ams/ams-input.c index 2edae7dfcab25..fe248f6a30c1a 100644 --- a/drivers/macintosh/ams/ams-input.c +++ b/drivers/macintosh/ams/ams-input.c @@ -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,