[SK_BUFF]: Introduce skb_copy_from_linear_data{_offset}
To clearly state the intent of copying from linear sk_buffs, _offset being a overly long variant but interesting for the sake of saving some bytes. Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
committed by
David S. Miller
parent
2a123b86e2
commit
d626f62b11
@@ -1466,9 +1466,8 @@ static int nsc_ircc_hard_xmit_fir(struct sk_buff *skb, struct net_device *dev)
|
||||
|
||||
self->stats.tx_bytes += skb->len;
|
||||
|
||||
memcpy(self->tx_fifo.queue[self->tx_fifo.free].start, skb->data,
|
||||
skb->len);
|
||||
|
||||
skb_copy_from_linear_data(skb, self->tx_fifo.queue[self->tx_fifo.free].start,
|
||||
skb->len);
|
||||
self->tx_fifo.len++;
|
||||
self->tx_fifo.free++;
|
||||
|
||||
|
Reference in New Issue
Block a user