Commit 822f1a57 authored by Francois Romieu's avatar Francois Romieu Committed by David S. Miller

via-velocity: Fix warnings on sparc64.

As reported by Meelis Roos.
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 87241840
...@@ -1272,7 +1272,7 @@ static void velocity_free_rd_ring(struct velocity_info *vptr) ...@@ -1272,7 +1272,7 @@ static void velocity_free_rd_ring(struct velocity_info *vptr)
continue; continue;
pci_unmap_single(vptr->pdev, rd_info->skb_dma, vptr->rx.buf_sz, pci_unmap_single(vptr->pdev, rd_info->skb_dma, vptr->rx.buf_sz,
PCI_DMA_FROMDEVICE); PCI_DMA_FROMDEVICE);
rd_info->skb_dma = (dma_addr_t) NULL; rd_info->skb_dma = 0;
dev_kfree_skb(rd_info->skb); dev_kfree_skb(rd_info->skb);
rd_info->skb = NULL; rd_info->skb = NULL;
...@@ -1333,7 +1333,7 @@ static void velocity_free_td_ring_entry(struct velocity_info *vptr, ...@@ -1333,7 +1333,7 @@ static void velocity_free_td_ring_entry(struct velocity_info *vptr,
if (td_info->skb_dma[i]) { if (td_info->skb_dma[i]) {
pci_unmap_single(vptr->pdev, 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->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); dev_kfree_skb(td_info->skb);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment