Commit d88d7de09875e643e225a5d0883d18152ce5a89b

Authored by David S. Miller
1 parent d87d7fb381

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

net/netfilter/nf_conntrack_standalone.c
... ... @@ -245,7 +245,7 @@
245 245 ret = 0;
246 246 release:
247 247 nf_ct_put(ct);
248   - return 0;
  248 + return ret;
249 249 }
250 250  
251 251 static const struct seq_operations ct_seq_ops = {