diff options
| -rw-r--r-- | net/core/dev.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/net/core/dev.c b/net/core/dev.c index 4d2b5167d7f5..5b630cece707 100644 --- a/net/core/dev.c +++ b/net/core/dev.c | |||
| @@ -1166,11 +1166,6 @@ int skb_checksum_help(struct sk_buff *skb, int inward) | |||
| 1166 | goto out_set_summed; | 1166 | goto out_set_summed; |
| 1167 | 1167 | ||
| 1168 | if (unlikely(skb_shinfo(skb)->gso_size)) { | 1168 | if (unlikely(skb_shinfo(skb)->gso_size)) { |
| 1169 | static int warned; | ||
| 1170 | |||
| 1171 | WARN_ON(!warned); | ||
| 1172 | warned = 1; | ||
| 1173 | |||
| 1174 | /* Let GSO fix up the checksum. */ | 1169 | /* Let GSO fix up the checksum. */ |
| 1175 | goto out_set_summed; | 1170 | goto out_set_summed; |
| 1176 | } | 1171 | } |
| @@ -1220,11 +1215,6 @@ struct sk_buff *skb_gso_segment(struct sk_buff *skb, int features) | |||
| 1220 | __skb_pull(skb, skb->mac_len); | 1215 | __skb_pull(skb, skb->mac_len); |
| 1221 | 1216 | ||
| 1222 | if (unlikely(skb->ip_summed != CHECKSUM_HW)) { | 1217 | if (unlikely(skb->ip_summed != CHECKSUM_HW)) { |
| 1223 | static int warned; | ||
| 1224 | |||
| 1225 | WARN_ON(!warned); | ||
| 1226 | warned = 1; | ||
| 1227 | |||
| 1228 | if (skb_header_cloned(skb) && | 1218 | if (skb_header_cloned(skb) && |
| 1229 | (err = pskb_expand_head(skb, 0, 0, GFP_ATOMIC))) | 1219 | (err = pskb_expand_head(skb, 0, 0, GFP_ATOMIC))) |
| 1230 | return ERR_PTR(err); | 1220 | return ERR_PTR(err); |
