svn commit: r291199 - head/sys/dev/usb/controller

Hans Petter Selasky hselasky at FreeBSD.org
Mon Nov 23 12:55:39 UTC 2015


Author: hselasky
Date: Mon Nov 23 12:55:37 2015
New Revision: 291199
URL: https://svnweb.freebsd.org/changeset/base/291199

Log:
  Fix compile warning about shifting signed negative constant.
  
  MFC after:	3 days

Modified:
  head/sys/dev/usb/controller/uhci.h

Modified: head/sys/dev/usb/controller/uhci.h
==============================================================================
--- head/sys/dev/usb/controller/uhci.h	Mon Nov 23 12:48:13 2015	(r291198)
+++ head/sys/dev/usb/controller/uhci.h	Mon Nov 23 12:55:37 2015	(r291199)
@@ -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;


More information about the svn-src-head mailing list