netfilter: nf_conntrack_standalone: Fix set-but-unused variables.
Subsystems (3)
David Miller
maintainerPATCH 38/42 netfilter: nf_conntrack_standalone: Fix set-but-unused variables.
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 <[email protected]>
--- net/netfilter/nf_conntrack_standalone.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
net/netfilter/nf_conntrack_standalone.c +1 -1
@@ -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 = {
Signature · 1 line
1.7.4.3