]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbcf4c8917e75aee2953d3e148eecdf86bf9c0c18
treea4fc8a6806512110d5834afb32f828c198b05466
parent6222fd4de9279148350b614dbd7d18c9d2eea515
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