diff options
author | David S. Miller <davem@davemloft.net> | 2011-04-17 03:13:16 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-04-17 03:13:16 -0400 |
commit | 21f825e61878db94c7093c8407602fc89fc38ad9 (patch) | |
tree | 345fe14192bbcb89c4405dff6c0baac36822cc21 /net/core/pktgen.c | |
parent | 06091ed6b8ec726e6cbc7e40ee6b5aa2332cf381 (diff) |
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 <davem@davemloft.net>
Diffstat (limited to 'net/core/pktgen.c')
-rw-r--r-- | net/core/pktgen.c | 2 |
1 files changed, 0 insertions, 2 deletions
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) | |||
2514 | { | 2514 | { |
2515 | struct xfrm_state *x = pkt_dev->flows[pkt_dev->curfl].x; | 2515 | struct xfrm_state *x = pkt_dev->flows[pkt_dev->curfl].x; |
2516 | int err = 0; | 2516 | int err = 0; |
2517 | struct iphdr *iph; | ||
2518 | 2517 | ||
2519 | if (!x) | 2518 | if (!x) |
2520 | return 0; | 2519 | return 0; |
@@ -2524,7 +2523,6 @@ static int pktgen_output_ipsec(struct sk_buff *skb, struct pktgen_dev *pkt_dev) | |||
2524 | return 0; | 2523 | return 0; |
2525 | 2524 | ||
2526 | spin_lock(&x->lock); | 2525 | spin_lock(&x->lock); |
2527 | iph = ip_hdr(skb); | ||
2528 | 2526 | ||
2529 | err = x->outer_mode->output(x, skb); | 2527 | err = x->outer_mode->output(x, skb); |
2530 | if (err) | 2528 | if (err) |