Author: attilio
Date: Mon Mar 15 14:20:16 2010
New Revision: 205167
URL: http://svn.freebsd.org/changeset/base/205167

Log:
  Make the code more readable and compiling on 64-bits arch different
  than amd64.
  
  Sponsored by: Sandvine Incorporated
  Submitted by: emaste
  MFC:          2 weeks
  X-MFC:                r205160

Modified:
  head/sys/dev/aac/aac.c

Modified: head/sys/dev/aac/aac.c
==============================================================================
--- head/sys/dev/aac/aac.c      Mon Mar 15 09:40:23 2010        (r205166)
+++ head/sys/dev/aac/aac.c      Mon Mar 15 14:20:16 2010        (r205167)
@@ -3123,11 +3123,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) +
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to