projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d87d7fb
)
netfilter: nf_conntrack_standalone: Fix set-but-unused variables.
author
David S. Miller
<davem@davemloft.net>
Mon, 18 Apr 2011 00:03:33 +0000
(17:03 -0700)
committer
David S. Miller
<davem@davemloft.net>
Mon, 18 Apr 2011 00:03:33 +0000
(17:03 -0700)
The variable 'ret' is set but unused in ct_seq_show().
This was obviously meant to be used to propagate error codes
to the caller, so make it so.
Signed-off-by: David S. Miller <davem@davemloft.net>
net/netfilter/nf_conntrack_standalone.c
patch
|
blob
|
history
diff --git
a/net/netfilter/nf_conntrack_standalone.c
b/net/netfilter/nf_conntrack_standalone.c
index 0ae14282588115a8baee1bc92314a5e9727fd779..05e9feb101c36845942ecc0b33291c55abf52dab 100644
(file)
--- a/
net/netfilter/nf_conntrack_standalone.c
+++ b/
net/netfilter/nf_conntrack_standalone.c
@@
-245,7
+245,7
@@
static int ct_seq_show(struct seq_file *s, void *v)
ret = 0;
release:
nf_ct_put(ct);
- return
0
;
+ return
ret
;
}
static const struct seq_operations ct_seq_ops = {