diff options
author | hselasky <hselasky@FreeBSD.org> | 2016-01-04 07:27:58 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2016-01-04 07:27:58 +0000 |
commit | d97219ab4a5e44974293d8b8aa4fafc51d34003c (patch) | |
tree | 0067c79a49295c54517f01354617de441082383f /sys/dev/usb/controller/uhci.h | |
parent | a8eafa6419f0d0c9c836bb0806aeae7a2f74db9d (diff) | |
download | FreeBSD-src-d97219ab4a5e44974293d8b8aa4fafc51d34003c.zip FreeBSD-src-d97219ab4a5e44974293d8b8aa4fafc51d34003c.tar.gz |
MFC r291199:
Fix compile warning about shifting signed negative constant.
Diffstat (limited to 'sys/dev/usb/controller/uhci.h')
-rw-r--r-- | sys/dev/usb/controller/uhci.h | 2 |
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; |