HID: multitouch: fix types returned from mt_need_to_apply_feature()
Some exit paths from mt_need_to_apply_feature() returned int instead
of bool; fix that up.
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid/hid-multitouch.c
index 82c98bf..38c4ca2 100644
--- a/drivers/hid/hid-multitouch.c
+++ b/drivers/hid/hid-multitouch.c
@@ -1206,15 +1206,15 @@
case HID_DG_LATENCYMODE:
field->value[index] = latency;
- return 1;
+ return true;
case HID_DG_SURFACESWITCH:
field->value[index] = surface_switch;
- return 1;
+ return true;
case HID_DG_BUTTONSWITCH:
field->value[index] = button_switch;
- return 1;
+ return true;
}
return false; /* no need to update the report */