提交 556483e2 编写于 作者: F Felix Rueegg 提交者: Jiri Kosina

HID: remove self-assignment from hid_input_report

The ternary expression will always result in a self-assignment, which is
pointless.
Signed-off-by: NFelix Rueegg <felix.rueegg@gmail.com>
Signed-off-by: NJiri Kosina <jkosina@suse.cz>
上级 d4b1bba7
......@@ -1417,10 +1417,8 @@ int hid_input_report(struct hid_device *hid, int type, u8 *data, int size, int i
if (hdrv && hdrv->raw_event && hid_match_report(hid, report)) {
ret = hdrv->raw_event(hid, report, data, size);
if (ret < 0) {
ret = ret < 0 ? ret : 0;
if (ret < 0)
goto unlock;
}
}
ret = hid_report_raw_event(hid, type, data, size, interrupt);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册