HID: rmi: Simplify an error handling path in 'rmi_hid_read_block()'
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 21 Mar 2020 06:40:48 +0000 (07:40 +0100)
committerJiri Kosina <jkosina@suse.cz>
Sun, 22 Mar 2020 23:08:51 +0000 (00:08 +0100)
commit2e1b9e1edff7fe19d37f0a5993ac03c5389af809
treea4fc8a6806512110d5834afb32f828c198b05466
parentb8a75eaddae9410767c7d95a1c5f3a547aae7b81
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 <christophe.jaillet@wanadoo.fr>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-rmi.c