Skip to content

Commit

Permalink
netfilter: nf_conntrack_standalone: Fix set-but-unused variables.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David S. Miller committed Apr 18, 2011
1 parent d87d7fb commit d88d7de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/netfilter/nf_conntrack_standalone.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit d88d7de

Please sign in to comment.