Skip to content

Commit

Permalink
e1000: simplify skb_put call.
Browse files Browse the repository at this point in the history
Simplify two calls to skb_put by removing one call to it.

Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com>
  • Loading branch information
Auke Kok authored and Jeff Garzik committed Dec 2, 2006
1 parent 2bc35c1 commit 996695d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions drivers/net/e1000/e1000_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 996695d

Please sign in to comment.