Skip to contentSkip to conversation

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

DISCUSSION Johan Hovold 1 participant 1 message Jun 25, 2018 USB

lore
Share & tools
lore
#0 lore raw
Quoted 1 line · Chengguang Xu

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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html