提交 d88d7de0 编写于 作者: D David S. Miller

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: NDavid S. Miller <davem@davemloft.net>
上级 d87d7fb3
......@@ -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 = {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册