aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/via-velocity.c
diff options
context:
space:
mode:
authorFrancois Romieu <romieu@fr.zoreil.com>2008-10-08 18:55:15 -0400
committerDavid S. Miller <davem@davemloft.net>2008-10-08 18:55:15 -0400
commit822f1a57d2ad957ae16b987115251539876aef26 (patch)
tree5f523287f8117327d45f1d5b20b3568a3661b7ec /drivers/net/via-velocity.c
parent87241840b214734c023bda83372059de3f7eeabd (diff)
via-velocity: Fix warnings on sparc64.
As reported by Meelis Roos. Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/via-velocity.c')
-rw-r--r--drivers/net/via-velocity.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/via-velocity.c b/drivers/net/via-velocity.c
index 007c12970065..ad20f96edfa1 100644
--- 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)
1272 continue; 1272 continue;
1273 pci_unmap_single(vptr->pdev, rd_info->skb_dma, vptr->rx.buf_sz, 1273 pci_unmap_single(vptr->pdev, rd_info->skb_dma, vptr->rx.buf_sz,
1274 PCI_DMA_FROMDEVICE); 1274 PCI_DMA_FROMDEVICE);
1275 rd_info->skb_dma = (dma_addr_t) NULL; 1275 rd_info->skb_dma = 0;
1276 1276
1277 dev_kfree_skb(rd_info->skb); 1277 dev_kfree_skb(rd_info->skb);
1278 rd_info->skb = NULL; 1278 rd_info->skb = NULL;
@@ -1333,7 +1333,7 @@ static void velocity_free_td_ring_entry(struct velocity_info *vptr,
1333 if (td_info->skb_dma[i]) { 1333 if (td_info->skb_dma[i]) {
1334 pci_unmap_single(vptr->pdev, td_info->skb_dma[i], 1334 pci_unmap_single(vptr->pdev, td_info->skb_dma[i],
1335 td_info->skb->len, PCI_DMA_TODEVICE); 1335 td_info->skb->len, PCI_DMA_TODEVICE);
1336 td_info->skb_dma[i] = (dma_addr_t) NULL; 1336 td_info->skb_dma[i] = 0;
1337 } 1337 }
1338 } 1338 }
1339 dev_kfree_skb(td_info->skb); 1339 dev_kfree_skb(td_info->skb);