Skip to content

Commit 2e1b9e1

Browse files
tititiou36Jiri Kosina
authored andcommitted
HID: rmi: Simplify an error handling path in 'rmi_hid_read_block()'
The 'RMI_READ_REQUEST_PENDING' bit is already cleared in the error handling path. There is no need to reset it twice. Signed-off-by: Christophe JAILLET <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent b8a75ea commit 2e1b9e1

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/hid/hid-rmi.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,6 @@ static int rmi_hid_read_block(struct rmi_transport_dev *xport, u16 addr,
217217
ret = rmi_write_report(hdev, data->writeReport,
218218
data->output_report_size);
219219
if (ret != data->output_report_size) {
220-
clear_bit(RMI_READ_REQUEST_PENDING, &data->flags);
221220
dev_err(&hdev->dev,
222221
"failed to write request output report (%d)\n",
223222
ret);

0 commit comments

Comments
 (0)