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
7575
7676 end = start + skb_shinfo(skb)->frags[i].size;
7777 copy = end - offset;
78− if ((copy = end - offset) > 0) {
78+ if (copy > 0) {
7979 skb_frag_t *frag = &skb_shinfo(skb)->frags[i];
8080 struct page *page = frag->page;
8181

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