aboutsummaryrefslogtreecommitdiffstats
path: root/net/netfilter/nfnetlink_log.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2015-03-16 11:25:17 -0700
committerPablo Neira Ayuso <pablo@netfilter.org>2015-03-18 10:51:35 +0100
commit1ca9e41770cba46dcc7c2a9c6ac28350ed866695 (patch)
tree6551da6c3f5dfac06aeee74bedbf29ebf204094d /net/netfilter/nfnetlink_log.c
parentnetfilter: bridge: remove BRNF_STATE_BRIDGED flag (diff)
downloadlinux-dev-1ca9e41770cba46dcc7c2a9c6ac28350ed866695.tar.xz
linux-dev-1ca9e41770cba46dcc7c2a9c6ac28350ed866695.zip
netfilter: Remove uses of seq_<foo> return values
The seq_printf/seq_puts/seq_putc return values, because they are frequently misused, will eventually be converted to void. See: commit 1f33c41c03da ("seq_file: Rename seq_overflow() to seq_has_overflowed() and make public") Miscellanea: o realign arguments Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'net/netfilter/nfnetlink_log.c')
-rw-r--r--net/netfilter/nfnetlink_log.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/net/netfilter/nfnetlink_log.c b/net/netfilter/nfnetlink_log.c
index 11d85b3813f2..db5e3a80fc6d 100644
--- a/net/netfilter/nfnetlink_log.c
+++ b/net/netfilter/nfnetlink_log.c
@@ -998,11 +998,13 @@ static int seq_show(struct seq_file *s, void *v)
{
const struct nfulnl_instance *inst = v;
- return seq_printf(s, "%5d %6d %5d %1d %5d %6d %2d\n",
- inst->group_num,
- inst->peer_portid, inst->qlen,
- inst->copy_mode, inst->copy_range,
- inst->flushtimeout, atomic_read(&inst->use));
+ seq_printf(s, "%5d %6d %5d %1d %5d %6d %2d\n",
+ inst->group_num,
+ inst->peer_portid, inst->qlen,
+ inst->copy_mode, inst->copy_range,
+ inst->flushtimeout, atomic_read(&inst->use));
+
+ return 0;
}
static const struct seq_operations nful_seq_ops = {