Date: Wed, 28 May 2014 14:26:46 +0000 (UTC) From: Marius Strobl <marius@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r266808 - head/sys/dev/sound/pci Message-ID: <201405281426.s4SEQk39092447@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405281426.s4SEQk39092447>