Author: marius
Date: Wed May 28 14:26:46 2014
New Revision: 266808
URL: http://svnweb.freebsd.org/changeset/base/266808

Log:
  Actually, just merge r233362 and do away with the unnecessary uint8_t
  pointer casting altogether.

Modified:
  head/sys/dev/sound/pci/emu10k1.c

Modified: head/sys/dev/sound/pci/emu10k1.c
==============================================================================
--- head/sys/dev/sound/pci/emu10k1.c    Wed May 28 13:27:14 2014        
(r266807)
+++ head/sys/dev/sound/pci/emu10k1.c    Wed May 28 14:26:46 2014        
(r266808)
@@ -1378,7 +1378,7 @@ emu_memalloc(struct sc_info *sc, u_int32
        ofs = 0;
        for (idx = start; idx < start + blksz; idx++) {
                mem->bmap[idx >> 3] |= 1 << (idx & 7);
-               tmp = (uintptr_t)((u_int8_t *)(uintptr_t)blk->buf_addr + ofs);
+               tmp = (uint32_t)(blk->buf_addr + ofs);
 #ifdef EMUDEBUG
                printf("pte[%d] -> %x phys, %x virt\n", idx, tmp,
                    ((u_int32_t)buf) + ofs);
_______________________________________________
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