Commit 996695de authored by Auke Kok's avatar Auke Kok Committed by Jeff Garzik

e1000: simplify skb_put call.

Simplify two calls to skb_put by removing one call to it.
Signed-off-by: default avatarAuke Kok <auke-jan.h.kok@intel.com>
parent 2bc35c10
...@@ -3842,12 +3842,11 @@ e1000_clean_rx_irq(struct e1000_adapter *adapter, ...@@ -3842,12 +3842,11 @@ e1000_clean_rx_irq(struct e1000_adapter *adapter,
/* save the skb in buffer_info as good */ /* save the skb in buffer_info as good */
buffer_info->skb = skb; buffer_info->skb = skb;
skb = new_skb; skb = new_skb;
skb_put(skb, length);
} }
} else /* else just continue with the old one */
skb_put(skb, length); }
/* end copybreak code */ /* end copybreak code */
skb_put(skb, length);
/* Receive Checksum Offload */ /* Receive Checksum Offload */
e1000_rx_checksum(adapter, e1000_rx_checksum(adapter,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment