HID: remove self-assignment from hid_input_report

The ternary expression will always result in a self-assignment, which is
pointless.

Signed-off-by: Felix Rueegg <felix.rueegg@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
This commit is contained in:
Felix Rueegg 2013-10-08 19:33:47 +02:00 committed by Jiri Kosina
parent d4b1bba761
commit 556483e2ad
1 changed files with 1 additions and 3 deletions

View File

@ -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);