From: David S. Miller Date: Sun, 17 Apr 2011 07:13:16 +0000 (-0700) Subject: pktgen: Fix set-but-unused variable. X-Git-Tag: MMI-PSA29.97-13-9~18929^2~537 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=21f825e61878db94c7093c8407602fc89fc38ad9;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git pktgen: Fix set-but-unused variable. "iph" in pktgen_output_ipsec() is set but never actually used. Kill it off. Signed-off-by: David S. Miller --- diff --git a/net/core/pktgen.c b/net/core/pktgen.c index aeeece72b72f..2fa6fee1b46f 100644 --- a/net/core/pktgen.c +++ b/net/core/pktgen.c @@ -2514,7 +2514,6 @@ static int pktgen_output_ipsec(struct sk_buff *skb, struct pktgen_dev *pkt_dev) { struct xfrm_state *x = pkt_dev->flows[pkt_dev->curfl].x; int err = 0; - struct iphdr *iph; if (!x) return 0; @@ -2524,7 +2523,6 @@ static int pktgen_output_ipsec(struct sk_buff *skb, struct pktgen_dev *pkt_dev) return 0; spin_lock(&x->lock); - iph = ip_hdr(skb); err = x->outer_mode->output(x, skb); if (err)