Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+1 -1
+1 -1
net/netfilter/nf_conntrack_standalone.c
··· 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 = {