Commit 21f825e6 authored by David S. Miller's avatar David S. Miller

pktgen: Fix set-but-unused variable.

"iph" in pktgen_output_ipsec() is set but never actually
used.  Kill it off.
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 06091ed6
...@@ -2514,7 +2514,6 @@ static int pktgen_output_ipsec(struct sk_buff *skb, struct pktgen_dev *pkt_dev) ...@@ -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; struct xfrm_state *x = pkt_dev->flows[pkt_dev->curfl].x;
int err = 0; int err = 0;
struct iphdr *iph;
if (!x) if (!x)
return 0; return 0;
...@@ -2524,7 +2523,6 @@ static int pktgen_output_ipsec(struct sk_buff *skb, struct pktgen_dev *pkt_dev) ...@@ -2524,7 +2523,6 @@ static int pktgen_output_ipsec(struct sk_buff *skb, struct pktgen_dev *pkt_dev)
return 0; return 0;
spin_lock(&x->lock); spin_lock(&x->lock);
iph = ip_hdr(skb);
err = x->outer_mode->output(x, skb); err = x->outer_mode->output(x, skb);
if (err) if (err)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment