]> git.karo-electronics.de Git - linux-beck.git/commitdiff
netfilter: nf_conntrack_standalone: Fix set-but-unused variables.
authorDavid S. Miller <davem@davemloft.net>
Mon, 18 Apr 2011 00:03:33 +0000 (17:03 -0700)
committerDavid 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

index 0ae14282588115a8baee1bc92314a5e9727fd779..05e9feb101c36845942ecc0b33291c55abf52dab 100644 (file)
@@ -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 = {