Skip to contentSkip to conversation

HID: hid-multitouch: Use true and false for boolean values

PATCH New Gustavo A. R. Silva 1 participant 1 message Mar 6, 2018 HID

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 HID: hid-multitouch: 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/hid/hid-multitouch.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hid/hid-multitouch.c +1 -1
index 2e1736b..a144d30 100644
@@ -723,7 +723,7 @@ static void mt_complete_slot(struct mt_device *td, struct input_dev *input)
 		}
 
 		if (!(td->mtclass.quirks & MT_QUIRK_CONFIDENCE))
-			s->confidence_state = 1;
+			s->confidence_state = true;
 		active = (s->touch_state || s->inrange_state) &&
 							s->confidence_state;
 
Signature · 1 line
2.7.4