diff options
author | Auke Kok <auke\-jan.h.kok@intel.com> | 2006-11-01 08:47:50 -0800 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2006-12-02 00:11:59 -0500 |
commit | 996695de21b9b301ebb32379e2950fc2142df3a7 (patch) | |
tree | 3980cbc4d45a4cd551d0c10ba9779cfa57b1552c | |
parent | 2bc35c1078fdfe7bb2a849c2d1bee8d9d5fea4a7 (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>
-rw-r--r-- | drivers/net/e1000/e1000_main.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/e1000/e1000_main.c b/drivers/net/e1000/e1000_main.c index 681b738c6da..44ba52229c7 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, /* 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, |