diff options
Diffstat (limited to 'drivers/net/usb/smsc95xx.c')
-rw-r--r-- | drivers/net/usb/smsc95xx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/usb/smsc95xx.c b/drivers/net/usb/smsc95xx.c index 5a7283372b53..89a91f8c22de 100644 --- a/drivers/net/usb/smsc95xx.c +++ b/drivers/net/usb/smsc95xx.c | |||
@@ -1134,7 +1134,7 @@ static int smsc95xx_rx_fixup(struct usbnet *dev, struct sk_buff *skb) | |||
1134 | if (skb->len == size) { | 1134 | if (skb->len == size) { |
1135 | if (pdata->use_rx_csum) | 1135 | if (pdata->use_rx_csum) |
1136 | smsc95xx_rx_csum_offload(skb); | 1136 | smsc95xx_rx_csum_offload(skb); |
1137 | 1137 | skb_trim(skb, skb->len - 4); /* remove fcs */ | |
1138 | skb->truesize = size + sizeof(struct sk_buff); | 1138 | skb->truesize = size + sizeof(struct sk_buff); |
1139 | 1139 | ||
1140 | return 1; | 1140 | return 1; |
@@ -1152,7 +1152,7 @@ static int smsc95xx_rx_fixup(struct usbnet *dev, struct sk_buff *skb) | |||
1152 | 1152 | ||
1153 | if (pdata->use_rx_csum) | 1153 | if (pdata->use_rx_csum) |
1154 | smsc95xx_rx_csum_offload(ax_skb); | 1154 | smsc95xx_rx_csum_offload(ax_skb); |
1155 | 1155 | skb_trim(ax_skb, ax_skb->len - 4); /* remove fcs */ | |
1156 | ax_skb->truesize = size + sizeof(struct sk_buff); | 1156 | ax_skb->truesize = size + sizeof(struct sk_buff); |
1157 | 1157 | ||
1158 | usbnet_skb_return(dev, ax_skb); | 1158 | usbnet_skb_return(dev, ax_skb); |