diff options
| author | tsutsui <tsutsui@NetBSD.org> | 2007-03-06 14:07:15 +0000 |
|---|---|---|
| committer | tsutsui <tsutsui@NetBSD.org> | 2007-03-06 14:07:15 +0000 |
| commit | bc4a41fd8b73b0c2acf5de669ee6743b0e300eb4 (patch) | |
| tree | fddb387a0eec7187afbded81c040cdb48ecb8224 /sys/arch/atari/dev | |
| parent | d3199011548b751b680bca5d978800736960f2f7 (diff) | |
Make req_addr (char *) rather than adding an extra cast
since it's used only in this function to calculate buffer address.
Diffstat (limited to 'sys/arch/atari/dev')
| -rw-r--r-- | sys/arch/atari/dev/ncr5380.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/arch/atari/dev/ncr5380.c b/sys/arch/atari/dev/ncr5380.c index d66130fe657..132f0ec9703 100644 --- a/sys/arch/atari/dev/ncr5380.c +++ b/sys/arch/atari/dev/ncr5380.c @@ -1,4 +1,4 @@ -/* $NetBSD: ncr5380.c,v 1.54 2007/03/06 13:54:45 he Exp $ */ +/* $NetBSD: ncr5380.c,v 1.55 2007/03/06 14:07:15 tsutsui Exp $ */ /* * Copyright (c) 1995 Leo Weppelman. @@ -31,7 +31,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: ncr5380.c,v 1.54 2007/03/06 13:54:45 he Exp $"); +__KERNEL_RCSID(0, "$NetBSD: ncr5380.c,v 1.55 2007/03/06 14:07:15 tsutsui Exp $"); /* * Bit mask of targets you want debugging to be shown @@ -1813,7 +1813,7 @@ SC_REQ *reqp; { u_long phy_buf; u_long phy_len; - void *req_addr; + char *req_addr; u_long req_len; struct dma_chain *dm; @@ -1858,7 +1858,7 @@ SC_REQ *reqp; (phy_len = PAGE_SIZE - ((u_long)req_addr & PGOFSET))) phy_len = req_len; - req_addr = (char *)req_addr + phy_len; + req_addr += phy_len; req_len -= phy_len; dm->dm_count += phy_len; |
