From bdec45e2bcb58cc249cd2e2d9cc0cb12fe8ffaf4 Mon Sep 17 00:00:00 2001 From: Marius Strobl Date: Wed, 28 May 2014 14:26:46 +0000 Subject: [PATCH] Actually, just merge r233362 and do away with the unnecessary uint8_t pointer casting altogether. --- sys/dev/sound/pci/emu10k1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/sound/pci/emu10k1.c b/sys/dev/sound/pci/emu10k1.c index acbb31ef094..72dec78dcf0 100644 --- a/sys/dev/sound/pci/emu10k1.c +++ b/sys/dev/sound/pci/emu10k1.c @@ -1378,7 +1378,7 @@ emu_memalloc(struct sc_info *sc, u_int32_t sz, bus_addr_t *addr) 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);