From: George Kadianakis Date: Tue, 6 Jul 2010 11:44:12 +0000 (+0000) Subject: net/ipv4/ip_output.c: Removal of unused variable in ip_fragment() X-Git-Tag: MMI-PSA29.97-13-9~23092^2~333 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=49085bd7d498c47d635851cfda22627b085cd9af;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git net/ipv4/ip_output.c: Removal of unused variable in ip_fragment() Removal of unused integer variable in ip_fragment(). Signed-off-by: George Kadianakis Signed-off-by: David S. Miller --- diff --git a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c index d6478521128e..663cb2acb39e 100644 --- a/net/ipv4/ip_output.c +++ b/net/ipv4/ip_output.c @@ -442,7 +442,6 @@ static void ip_copy_metadata(struct sk_buff *to, struct sk_buff *from) int ip_fragment(struct sk_buff *skb, int (*output)(struct sk_buff *)) { struct iphdr *iph; - int raw = 0; int ptr; struct net_device *dev; struct sk_buff *skb2; @@ -580,7 +579,7 @@ int ip_fragment(struct sk_buff *skb, int (*output)(struct sk_buff *)) slow_path: left = skb->len - hlen; /* Space per frame */ - ptr = raw + hlen; /* Where to start from */ + ptr = hlen; /* Where to start from */ /* for bridged IP traffic encapsulated inside f.e. a vlan header, * we need to make room for the encapsulating header