aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/marvell/mv643xx_eth.c
diff options
context:
space:
mode:
authorIsaku Yamahata <yamahata@valinux.co.jp>2013-06-14 04:58:33 -0400
committerDavid S. Miller <davem@davemloft.net>2013-06-17 20:12:20 -0400
commit18f1d0541241855d928608ce6ce325e4cdad222d (patch)
tree42721d7aba27a8bd74ac80d08c0b30925379c1f5 /drivers/net/ethernet/marvell/mv643xx_eth.c
parent499e2e6fcb9351844d721e4bd3f1184d879bd178 (diff)
mv643xx_eth.c: convert skb->end into skb_end_poitner(skb)
The change set of 4305b541 "[SK_BUFF]: Convert skb->end to sk_buff_data_t" converted skb->end from pointer to sk_buff_data_t. The pointed value should be accessed via skb_end_pointer(). Since arm or ppc arch doesn't define NET_SKBUFF_DATA_USES_OFFSET, skb->end is effectively pointer. So it doesn't cause a real problem. But this patch is good for consistency. Found by inspection. Compile test only. Cc: Simon Horman <horms@verge.net.au> Cc: Lennert Buytenhek <buytenh@wantstofly.org> Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Reviewed-by: Simon Horman <horms@verge.net.au> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/marvell/mv643xx_eth.c')
-rw-r--r--drivers/net/ethernet/marvell/mv643xx_eth.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/marvell/mv643xx_eth.c b/drivers/net/ethernet/marvell/mv643xx_eth.c
index c7f9fb33ce95..510d50603a02 100644
--- a/drivers/net/ethernet/marvell/mv643xx_eth.c
+++ b/drivers/net/ethernet/marvell/mv643xx_eth.c
@@ -621,7 +621,7 @@ static int rxq_refill(struct rx_queue *rxq, int budget)
621 621
622 rx_desc = rxq->rx_desc_area + rx; 622 rx_desc = rxq->rx_desc_area + rx;
623 623
624 size = skb->end - skb->data; 624 size = skb_end_pointer(skb) - skb->data;
625 rx_desc->buf_ptr = dma_map_single(mp->dev->dev.parent, 625 rx_desc->buf_ptr = dma_map_single(mp->dev->dev.parent,
626 skb->data, size, 626 skb->data, size,
627 DMA_FROM_DEVICE); 627 DMA_FROM_DEVICE);