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

Emmanuel Vadot manu at FreeBSD.org
Wed Oct 16 13:53:53 UTC 2019


Author: manu
Date: Wed Oct 16 13:53:53 2019
New Revision: 353642
URL: https://svnweb.freebsd.org/changeset/base/353642

Log:
  dwc3: Use a pair of ()'s around arguments for some macros
  
  Reported by:	hselasky
  MFC after:	1 week
  X-MFC-With:	r353533

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

Modified: head/sys/dev/usb/controller/dwc3.h
==============================================================================
--- head/sys/dev/usb/controller/dwc3.h	Wed Oct 16 13:30:28 2019	(r353641)
+++ head/sys/dev/usb/controller/dwc3.h	Wed Oct 16 13:53:53 2019	(r353642)
@@ -92,8 +92,8 @@
 #define	 DWC3_GUSB3PIPECTL0_PHYSOFTRST		(1 << 31)
 #define	 DWC3_GUSB3PIPECTL0_DELAYP1TRANS	(1 << 18)
 
-#define	DWC3_GTXFIFOSIZ(x)	(0xc300 + 0x4 * x)
-#define	DWC3_GRXFIFOSIZ(x)	(0xc380 + 0x4 * x)
+#define	DWC3_GTXFIFOSIZ(x)	(0xc300 + 0x4 * (x))
+#define	DWC3_GRXFIFOSIZ(x)	(0xc380 + 0x4 * (x))
 #define	DWC3_GEVNTADRLO0		0xc400
 #define	DWC3_GEVNTADRHI0		0xc404
 #define	DWC3_GEVNTSIZ0		0xc408


More information about the svn-src-all mailing list