summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/controller/uhci.h
diff options
context:
space:
mode:
authorhselasky <hselasky@FreeBSD.org>2015-11-23 12:55:37 +0000
committerhselasky <hselasky@FreeBSD.org>2015-11-23 12:55:37 +0000
commit96c4786f473b7cc48c7193cfa26e032a5e52d824 (patch)
tree21f8cfa89c98034498e44eacb8af0b116dcf9c87 /sys/dev/usb/controller/uhci.h
parent24641fd80bf48485d78a92673c1bec422fff009a (diff)
downloadFreeBSD-src-96c4786f473b7cc48c7193cfa26e032a5e52d824.zip
FreeBSD-src-96c4786f473b7cc48c7193cfa26e032a5e52d824.tar.gz
Fix compile warning about shifting signed negative constant.
MFC after: 3 days
Diffstat (limited to 'sys/dev/usb/controller/uhci.h')
-rw-r--r--sys/dev/usb/controller/uhci.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/usb/controller/uhci.h b/sys/dev/usb/controller/uhci.h
index 8a6ce44..801952a 100644
--- a/sys/dev/usb/controller/uhci.h
+++ b/sys/dev/usb/controller/uhci.h
@@ -97,7 +97,7 @@ struct uhci_td {
#define UHCI_TD_GET_ENDPT(s) (((s) >> 15) & 0xf)
#define UHCI_TD_SET_DT(t) ((t) << 19)
#define UHCI_TD_GET_DT(s) (((s) >> 19) & 1)
-#define UHCI_TD_SET_MAXLEN(l) (((l)-1) << 21)
+#define UHCI_TD_SET_MAXLEN(l) (((l)-1U) << 21)
#define UHCI_TD_GET_MAXLEN(s) ((((s) >> 21) + 1) & 0x7ff)
#define UHCI_TD_MAXLEN_MASK 0xffe00000
volatile uint32_t td_buffer;
OpenPOWER on IntegriCloud