Commit 511efbbb authored by Isaku Yamahata's avatar Isaku Yamahata Committed by David S. Miller

pxa168_eth: convert skb->end into skb_end_pointer(skb)

The change set of 4305b541, "[SK_BUFF]: Convert skb->end to sk_buff_data_t"
converted skb->end from pointer type to sk_buff_data_t.
The pointed value should be accessed via skb_end_pointer().

Since arm 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 tested only.

Cc: Simon Horman <horms@verge.net.au>
Signed-off-by: default avatarIsaku Yamahata <yamahata@valinux.co.jp>
Reviewed-by: default avatarSimon Horman <horms@verge.net.au>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 18f1d054
...@@ -357,7 +357,7 @@ static void rxq_refill(struct net_device *dev) ...@@ -357,7 +357,7 @@ static void rxq_refill(struct net_device *dev)
/* Get 'used' Rx descriptor */ /* Get 'used' Rx descriptor */
used_rx_desc = pep->rx_used_desc_q; used_rx_desc = pep->rx_used_desc_q;
p_used_rx_desc = &pep->p_rx_desc_area[used_rx_desc]; p_used_rx_desc = &pep->p_rx_desc_area[used_rx_desc];
size = skb->end - skb->data; size = skb_end_pointer(skb) - skb->data;
p_used_rx_desc->buf_ptr = dma_map_single(NULL, p_used_rx_desc->buf_ptr = dma_map_single(NULL,
skb->data, skb->data,
size, size,
......
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