]> nv-tegra.nvidia Code Review - linux-2.6.git/blobdiff - net/core/user_dma.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/djbw/async_tx
[linux-2.6.git] / net / core / user_dma.c
index de760504f6fee9bd94276f7e9b728983cc4a4663..8c6b706963ff01b02c87a54f2c70103e7f7f8f29 100644 (file)
@@ -76,7 +76,7 @@ int dma_skb_copy_datagram_iovec(struct dma_chan *chan,
 
                end = start + skb_shinfo(skb)->frags[i].size;
                copy = end - offset;
-               if ((copy = end - offset) > 0) {
+               if (copy > 0) {
                        skb_frag_t *frag = &skb_shinfo(skb)->frags[i];
                        struct page *page = frag->page;