|
@@ -128,7 +128,7 @@ static int ch341_control_in(struct usb_device *dev,
|
|
|
r = usb_control_msg(dev, usb_rcvctrlpipe(dev, 0), request,
|
|
|
USB_TYPE_VENDOR | USB_RECIP_DEVICE | USB_DIR_IN,
|
|
|
value, index, buf, bufsize, DEFAULT_TIMEOUT);
|
|
|
- if (r < bufsize) {
|
|
|
+ if (r < (int)bufsize) {
|
|
|
if (r >= 0) {
|
|
|
dev_err(&dev->dev,
|
|
|
"short control message received (%d < %u)\n",
|