diff options
author | David S. Miller <davem@davemloft.net> | 2011-04-17 17:03:33 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-04-17 17:03:33 -0700 |
commit | d88d7de09875e643e225a5d0883d18152ce5a89b (patch) | |
tree | 1753bfffbd87fd8236f5276121bb5cd182cbe190 /net/netfilter | |
parent | d87d7fb381c153f71b7cdfd37f3513edc6d0eb8f (diff) | |
download | talos-op-linux-d88d7de09875e643e225a5d0883d18152ce5a89b.tar.gz talos-op-linux-d88d7de09875e643e225a5d0883d18152ce5a89b.zip |
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 <davem@davemloft.net>
Diffstat (limited to 'net/netfilter')
-rw-r--r-- | net/netfilter/nf_conntrack_standalone.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nf_conntrack_standalone.c b/net/netfilter/nf_conntrack_standalone.c index 0ae142825881..05e9feb101c3 100644 --- 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 = { |