Skip to content

Commit

Permalink
pktgen: Fix set-but-unused variable.
Browse files Browse the repository at this point in the history
"iph" in pktgen_output_ipsec() is set but never actually
used.  Kill it off.

Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
David S. Miller committed Apr 17, 2011
1 parent 06091ed commit 21f825e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions net/core/pktgen.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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)
Expand Down

0 comments on commit 21f825e

Please sign in to comment.