projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
06091ed
)
pktgen: Fix set-but-unused variable.
author
David S. Miller
<davem@davemloft.net>
Sun, 17 Apr 2011 07:13:16 +0000
(
00:13
-0700)
committer
David S. Miller
<davem@davemloft.net>
Sun, 17 Apr 2011 07:13:16 +0000
(
00:13
-0700)
"iph" in pktgen_output_ipsec() is set but never actually
used. Kill it off.
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/pktgen.c
patch
|
blob
|
history
diff --git
a/net/core/pktgen.c
b/net/core/pktgen.c
index aeeece72b72fa25d29dfd3162a2f9c3a8ef6fcbd..2fa6fee1b46f428b21a753d320033babe3e9e943 100644
(file)
--- 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)