Skip to contentSkip to conversation

macintosh/ams-input: Use true and false for boolean values

PATCH Applied Gustavo A. R. Silva 3 participants 3 messages Jan 24, 2018 – Jan 29, 2018 Linux for power macintosh

lore
Share & tools
lore
#0 lore raw

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

---
 drivers/macintosh/ams/ams-input.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/macintosh/ams/ams-input.c +2 -2
index 2edae7d..fe248f6 100644
@@ -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