svn commit: r204054 - head/sys/mips/cavium

Warner Losh imp at FreeBSD.org
Thu Feb 18 19:24:24 UTC 2010


Author: imp
Date: Thu Feb 18 19:24:23 2010
New Revision: 204054
URL: http://svn.freebsd.org/changeset/base/204054

Log:
  Parens around tertiary operator so that casting the result works...

Modified:
  head/sys/mips/cavium/octeon_pcmap_regs.h

Modified: head/sys/mips/cavium/octeon_pcmap_regs.h
==============================================================================
--- head/sys/mips/cavium/octeon_pcmap_regs.h	Thu Feb 18 19:06:30 2010	(r204053)
+++ head/sys/mips/cavium/octeon_pcmap_regs.h	Thu Feb 18 19:24:23 2010	(r204054)
@@ -601,10 +601,9 @@ typedef enum {
 
 
 #define octeon_ptr_to_phys(ptr)                                           \
-    ((((mipsx_addr_size) ptr) >> MIPSX_ADDR_SIZE_KSEGX_BIT_SHIFT) == 2) ? \
+   (((((mipsx_addr_size) ptr) >> MIPSX_ADDR_SIZE_KSEGX_BIT_SHIFT) == 2) ? \
     	((mipsx_addr_size) ptr & MIPSX_ADDR_SIZE_KSEGX_MASK_REMOVED)  :   \
-    	(vtophys(ptr))
-
+        (vtophys(ptr)))
 
 #ifdef CODE_FOR_64_BIT_NEEDED
 static inline mipsx_addr_size octeon_ptr_to_phys (void *ptr)


More information about the svn-src-all mailing list