No need to compute copy twice in the frags loop in dma_skb_copy_datagram_iovec().
Unified · Split
| @@ -75,7 +75,7 @@ int dma_skb_copy_datagram_iovec(struct dma_chan *chan, · 74 unmodified lines | ||
| 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 | |