History

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().

Brice Goglin committed 18 years ago

Commit 7557af21 parent b9f5f521 file · +1 −1Browse files

Unified · Split

net/core/user_dma.c+1−1
@@ -75,7 +75,7 @@ int dma_skb_copy_datagram_iovec(struct dma_chan *chan, · 74 unmodified lines
75 75
76 end = start + skb_shinfo(skb)->frags[i].size;76 end = start + skb_shinfo(skb)->frags[i].size;
77 copy = end - offset;77 copy = end - offset;
78 if ((copy = end - offset) > 0) {78 if (copy > 0) {
79 skb_frag_t *frag = &skb_shinfo(skb)->frags[i];79 skb_frag_t *frag = &skb_shinfo(skb)->frags[i];
80 struct page *page = frag->page;80 struct page *page = frag->page;
81 81

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t