aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/sunhme.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/sunhme.c')
-rw-r--r--drivers/net/sunhme.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/net/sunhme.c b/drivers/net/sunhme.c
index aca592bc0329..4b69c1deb9f3 100644
--- a/drivers/net/sunhme.c
+++ b/drivers/net/sunhme.c
@@ -2269,10 +2269,8 @@ static int happy_meal_start_xmit(struct sk_buff *skb, struct net_device *dev)
2269 2269
2270 tx_flags = TXFLAG_OWN; 2270 tx_flags = TXFLAG_OWN;
2271 if (skb->ip_summed == CHECKSUM_PARTIAL) { 2271 if (skb->ip_summed == CHECKSUM_PARTIAL) {
2272 u32 csum_start_off, csum_stuff_off; 2272 const u32 csum_start_off = skb_transport_offset(skb);
2273 2273 const u32 csum_stuff_off = csum_start_off + skb->csum_offset;
2274 csum_start_off = (u32) (skb->h.raw - skb->data);
2275 csum_stuff_off = csum_start_off + skb->csum_offset;
2276 2274
2277 tx_flags = (TXFLAG_OWN | TXFLAG_CSENABLE | 2275 tx_flags = (TXFLAG_OWN | TXFLAG_CSENABLE |
2278 ((csum_start_off << 14) & TXFLAG_CSBUFBEGIN) | 2276 ((csum_start_off << 14) & TXFLAG_CSBUFBEGIN) |