summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/serial/ufoma.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/usb/serial/ufoma.c')
-rw-r--r--sys/dev/usb/serial/ufoma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/serial/ufoma.c b/sys/dev/usb/serial/ufoma.c
index 7233f90..2f5e756 100644
--- a/sys/dev/usb/serial/ufoma.c
+++ b/sys/dev/usb/serial/ufoma.c
@@ -684,7 +684,7 @@ ufoma_intr_callback(struct usb_xfer *xfer, usb_error_t error)
DPRINTF("too short message\n");
goto tr_setup;
}
- if (actlen > sizeof(pkt)) {
+ if (actlen > (int)sizeof(pkt)) {
DPRINTF("truncating message\n");
actlen = sizeof(pkt);
}
OpenPOWER on IntegriCloud