Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit c60fa555 authored by Pan Bian's avatar Pan Bian Committed by Jiri Kosina
Browse files

HID: usbhid: fix improper return value



Function hid_post_reset() should return negative error codes on failures.
However, in its implementation, it incorrectly returns 1.  This patch fixes the
bug, returning proper error codes on failures.

Signed-off-by: default avatarPan Bian <bianpan2016@163.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 2ae3986b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment