From c5b375530646cf0c535eaf0531a60a7b3a0d6940 Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Mon, 1 Sep 2003 01:07:24 +0000 Subject: eliminate casts from the DMAADDR macro. This depends upon bus_addr_t being a type that you can do arithmetic with. This eliminates many warnings when compiling with PAE. Various by: scottl --- sys/dev/usb/usb_mem.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sys/dev/usb') diff --git a/sys/dev/usb/usb_mem.h b/sys/dev/usb/usb_mem.h index fa95716f1f2ca..bba88d582082d 100644 --- a/sys/dev/usb/usb_mem.h +++ b/sys/dev/usb/usb_mem.h @@ -55,7 +55,7 @@ typedef struct usb_dma_block { } usb_dma_block_t; #ifdef __FreeBSD__ -#define DMAADDR(dma, o) ((uint32_t)(uintptr_t)(((char *)(dma)->block->segs[0].ds_addr) + (dma)->offs + (o))) +#define DMAADDR(dma, o) ((dma)->block->segs[0].ds_addr + (dma)->offs + (o)) #else #define DMAADDR(dma, o) (((char *)(dma)->block->map->dm_segs[0].ds_addr) + (dma)->offs + (o)) #endif -- cgit v1.3