提交 99c703ac 编写于 作者: J Jiri Kosina

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: Nkbuild test robot <lkp@intel.com>
Signed-off-by: NJiri Kosina <jkosina@suse.cz>
上级 02946f4b
......@@ -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 */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册