summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/net/if_udav.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/usb/net/if_udav.c')
-rw-r--r--sys/dev/usb/net/if_udav.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/net/if_udav.c b/sys/dev/usb/net/if_udav.c
index 8160a3b..2507846 100644
--- a/sys/dev/usb/net/if_udav.c
+++ b/sys/dev/usb/net/if_udav.c
@@ -642,7 +642,7 @@ udav_bulk_read_callback(struct usb_xfer *xfer, usb_error_t error)
switch (USB_GET_STATE(xfer)) {
case USB_ST_TRANSFERRED:
- if (actlen < sizeof(stat) + ETHER_CRC_LEN) {
+ if (actlen < (int)(sizeof(stat) + ETHER_CRC_LEN)) {
ifp->if_ierrors++;
goto tr_setup;
}
OpenPOWER on IntegriCloud