projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8724184
)
via-velocity: Fix warnings on sparc64.
author
Francois Romieu
<romieu@fr.zoreil.com>
Wed, 8 Oct 2008 22:55:15 +0000
(15:55 -0700)
committer
David S. Miller
<davem@davemloft.net>
Wed, 8 Oct 2008 22:55:15 +0000
(15:55 -0700)
As reported by Meelis Roos.
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/via-velocity.c
patch
|
blob
|
history
diff --git
a/drivers/net/via-velocity.c
b/drivers/net/via-velocity.c
index
007c129
..
ad20f96
100644
(file)
--- a/
drivers/net/via-velocity.c
+++ b/
drivers/net/via-velocity.c
@@
-1272,7
+1272,7
@@
static void velocity_free_rd_ring(struct velocity_info *vptr)
continue;
pci_unmap_single(vptr->pdev, rd_info->skb_dma, vptr->rx.buf_sz,
PCI_DMA_FROMDEVICE);
- rd_info->skb_dma =
(dma_addr_t) NULL
;
+ rd_info->skb_dma =
0
;
dev_kfree_skb(rd_info->skb);
rd_info->skb = NULL;
@@
-1333,7
+1333,7
@@
static void velocity_free_td_ring_entry(struct velocity_info *vptr,
if (td_info->skb_dma[i]) {
pci_unmap_single(vptr->pdev, td_info->skb_dma[i],
td_info->skb->len, PCI_DMA_TODEVICE);
- td_info->skb_dma[i] =
(dma_addr_t) NULL
;
+ td_info->skb_dma[i] =
0
;
}
}
dev_kfree_skb(td_info->skb);