summary refs log tree commit diff
path: root/drivers
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavo@embeddedor.com>2018-01-23 19:48:46 -0600
committerMichael Ellerman <mpe@ellerman.id.au>2018-01-28 17:21:17 +1100
commit516c32f64f144721ca05b881737e4425932827c5 (patch)
treea68f714164feee1f1ab73e44e946050ba938bffe /drivers
parent4f256d561447c6e1bf8b70e19daae08da4279f1c (diff)
downloadlinux-516c32f64f144721ca05b881737e4425932827c5.tar.gz
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 <gustavo@embeddedor.com>
Reviewed-by: Michael Hanselmann <public@hansmi.ch>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/macintosh/ams/ams-input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/macintosh/ams/ams-input.c b/drivers/macintosh/ams/ams-input.c
index 2edae7dfcab2..fe248f6a30c1 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,