Fix compile warning about shifting signed negative constant.

MFC after:	3 days
This commit is contained in:
Hans Petter Selasky 2015-11-23 12:55:37 +00:00
parent 1765946ba9
commit db8409e00a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=291199

View File

@ -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;