Re: [PATCH] usb: cast sizeof() to int when comparing with error code

2018-06-25 Thread Johan Hovold
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 p

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

2018-06-25 Thread Chengguang Xu
Negative error code will be larger than sizeof(). Signed-off-by: Chengguang Xu --- drivers/usb/serial/ir-usb.c | 2 +- drivers/usb/serial/quatech2.c | 2 +- drivers/usb/serial/ssu100.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/usb/serial/ir-usb.c b/driver