Make req_addr (char *) rather than adding an extra cast
since it's used only in this function to calculate buffer address.
This commit is contained in:
parent
d319901154
commit
bc4a41fd8b
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user