Skip to contentSkip to conversation

netfilter: nf_conntrack_standalone: Fix set-but-unused variables.

PATCH In review David Miller 1 participant 1 message Apr 18, 2011

Subsystems (3)
lore
Share & tools
lore

David Miller

author maintainer
#0 lore raw

PATCH 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.

---
 net/netfilter/nf_conntrack_standalone.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
net/netfilter/nf_conntrack_standalone.c +1 -1
index 0ae1428..05e9feb 100644
@@ -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