usb: cast sizeof() to int when comparing with error code

From: Johan Hovold <johan@kernel.org>
Date: 2018-06-25 08:19:09

On Mon, Jun 25, 2018 at 03:35:18PM +0800, Chengguang Xu wrote:
Negative error code will be larger than sizeof().
Good catch!

I was gonna ask you to submit this as three separate patches to
facilitate stable backports, but fortunately it appears none of these
have any bad implications (besides possibly the ir-usb one printing a
less descriptive debug message).

So I'll queue this one of up for -next.

Thanks,
Johan
---
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help