Skip to content

Commit

Permalink
HID: multitouch: fix types returned from mt_need_to_apply_feature()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jiri Kosina committed May 16, 2018
1 parent 02946f4 commit 99c703a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/hid/hid-multitouch.c
Original file line number Diff line number Diff line change
Expand Up @@ -1206,15 +1206,15 @@ static bool mt_need_to_apply_feature(struct hid_device *hdev,

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 */
Expand Down

0 comments on commit 99c703a

Please sign in to comment.