Re: [PATCH 1/1] input: usbhid: fix improper check

From: Oliver Neukum
Date: Mon Dec 05 2016 - 04:17:04 EST


On Sun, 2016-12-04 at 13:10 +0800, Pan Bian wrote:
> From: Pan Bian <bianpan2016@xxxxxxx>
>
> Function hid_post_reset() returns 0 on success, or 1 on failures.

It seems like hid_post_reset() is buggy in not returning
a proper error code in the failure case. So your diagnosis
is right, but the fix is at the wrong place.

Regards
Oliver