Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net_dma: remove duplicate assignment in dma_skb_copy_datagram_iovec

No need to compute copy twice in the frags loop in
dma_skb_copy_datagram_iovec().

Signed-off-by: Brice Goglin <Brice.Goglin@inria.fr>
Acked-by: Shannon Nelson <shannon.nelson@intel.com>
Signed-off-by: Maciej Sosnowski <maciej.sosnowski@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Brice Goglin and committed by
David S. Miller
7557af25 b9f5f52c

+1 -1
+1 -1
net/core/user_dma.c
··· 75 75 76 76 end = start + skb_shinfo(skb)->frags[i].size; 77 77 copy = end - offset; 78 - if ((copy = end - offset) > 0) { 78 + if (copy > 0) { 79 79 skb_frag_t *frag = &skb_shinfo(skb)->frags[i]; 80 80 struct page *page = frag->page; 81 81