]> err.no Git - linux-2.6/commitdiff
e1000: simplify skb_put call.
authorAuke Kok <auke\-jan.h.kok@intel.com>
Wed, 1 Nov 2006 16:47:50 +0000 (08:47 -0800)
committerJeff Garzik <jeff@garzik.org>
Sat, 2 Dec 2006 05:11:59 +0000 (00:11 -0500)
Simplify two calls to skb_put by removing one call to it.

Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com>
drivers/net/e1000/e1000_main.c

index 681b738c6dac25c1fea34dc9e21a3b6c60a6c52f..44ba52229c73b9946229ebb13b2961a436ab9dce 100644 (file)
@@ -3842,12 +3842,11 @@ e1000_clean_rx_irq(struct e1000_adapter *adapter,
                                /* save the skb in buffer_info as good */
                                buffer_info->skb = skb;
                                skb = new_skb;
-                               skb_put(skb, length);
                        }
-               } else
-                       skb_put(skb, length);
-
+                       /* else just continue with the old one */
+               }
                /* end copybreak code */
+               skb_put(skb, length);
 
                /* Receive Checksum Offload */
                e1000_rx_checksum(adapter,