aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/e1000
diff options
context:
space:
mode:
authorAuke Kok <auke\-jan.h.kok@intel.com>2006-11-01 11:47:50 -0500
committerJeff Garzik <jeff@garzik.org>2006-12-02 00:11:59 -0500
commit996695de21b9b301ebb32379e2950fc2142df3a7 (patch)
tree3980cbc4d45a4cd551d0c10ba9779cfa57b1552c /drivers/net/e1000
parent2bc35c1078fdfe7bb2a849c2d1bee8d9d5fea4a7 (diff)
e1000: simplify skb_put call.
Simplify two calls to skb_put by removing one call to it. Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com>
Diffstat (limited to 'drivers/net/e1000')
-rw-r--r--drivers/net/e1000/e1000_main.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/e1000/e1000_main.c b/drivers/net/e1000/e1000_main.c
index 681b738c6dac..44ba52229c73 100644
--- a/drivers/net/e1000/e1000_main.c
+++ b/drivers/net/e1000/e1000_main.c
@@ -3842,12 +3842,11 @@ e1000_clean_rx_irq(struct e1000_adapter *adapter,
3842 /* save the skb in buffer_info as good */ 3842 /* save the skb in buffer_info as good */
3843 buffer_info->skb = skb; 3843 buffer_info->skb = skb;
3844 skb = new_skb; 3844 skb = new_skb;
3845 skb_put(skb, length);
3846 } 3845 }
3847 } else 3846 /* else just continue with the old one */
3848 skb_put(skb, length); 3847 }
3849
3850 /* end copybreak code */ 3848 /* end copybreak code */
3849 skb_put(skb, length);
3851 3850
3852 /* Receive Checksum Offload */ 3851 /* Receive Checksum Offload */
3853 e1000_rx_checksum(adapter, 3852 e1000_rx_checksum(adapter,