Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Jan 2016 07:27:58 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org
Subject:   svn commit: r293146 - stable/10/sys/dev/usb/controller
Message-ID:  <201601040727.u047Rw78089367@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Mon Jan  4 07:27:58 2016
New Revision: 293146
URL: https://svnweb.freebsd.org/changeset/base/293146

Log:
  MFC r291199:
  Fix compile warning about shifting signed negative constant.

Modified:
  stable/10/sys/dev/usb/controller/uhci.h

Modified: stable/10/sys/dev/usb/controller/uhci.h
==============================================================================
--- stable/10/sys/dev/usb/controller/uhci.h	Mon Jan  4 07:11:15 2016	(r293145)
+++ stable/10/sys/dev/usb/controller/uhci.h	Mon Jan  4 07:27:58 2016	(r293146)
@@ -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;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201601040727.u047Rw78089367>