svn commit: r205879 - stable/7/sys/dev/aac

Attilio Rao attilio at FreeBSD.org
Tue Mar 30 12:08:00 UTC 2010


Author: attilio
Date: Tue Mar 30 12:08:00 2010
New Revision: 205879
URL: http://svn.freebsd.org/changeset/base/205879

Log:
  MFC r205167:
  Make the code more readable and compiling on 64-bits arch different
  than amd64.
  
  Sponsored by:	Sandvine Incorporated

Modified:
  stable/7/sys/dev/aac/aac.c
Directory Properties:
  stable/7/sys/   (props changed)
  stable/7/sys/cddl/contrib/opensolaris/   (props changed)
  stable/7/sys/contrib/dev/acpica/   (props changed)
  stable/7/sys/contrib/pf/   (props changed)

Modified: stable/7/sys/dev/aac/aac.c
==============================================================================
--- stable/7/sys/dev/aac/aac.c	Tue Mar 30 12:06:18 2010	(r205878)
+++ stable/7/sys/dev/aac/aac.c	Tue Mar 30 12:08:00 2010	(r205879)
@@ -3127,11 +3127,7 @@ aac_ioctl_send_raw_srb(struct aac_softc 
 		sge = srbcmd->sg_map.SgEntry;
 		sge64 = NULL;
 		srb_sg_bytecount = sge->SgByteCount;
-#ifdef __amd64__
-		srb_sg_address = (void *)(uint64_t)sge->SgAddress;
-#else
-		srb_sg_address = (void *)sge->SgAddress;
-#endif
+		srb_sg_address = (void *)(uintptr_t)sge->SgAddress;
 	}
 #ifdef __amd64__
 	else if (fibsize == (sizeof(struct aac_srb) +


More information about the svn-src-stable-7 mailing list