diff options
author | Joe Perches <joe@perches.com> | 2015-04-16 01:17:54 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-16 01:35:24 +0200 |
commit | 7f032d6ef6154868a2a5d5f6b2c3f8587292196c (patch) | |
tree | 4defd42c0bcae9ad3f1272002e2f718aaa56e669 /ipc/util.c | |
parent | rtc: remove use of seq_printf return value (diff) | |
download | linux-7f032d6ef6154868a2a5d5f6b2c3f8587292196c.tar.xz linux-7f032d6ef6154868a2a5d5f6b2c3f8587292196c.zip |
ipc: remove use of seq_printf return value
The seq_printf return value, because it's frequently misused,
will eventually be converted to void.
See: commit 1f33c41c03da ("seq_file: Rename seq_overflow() to
seq_has_overflowed() and make public")
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'ipc/util.c')
-rw-r--r-- | ipc/util.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ipc/util.c b/ipc/util.c index 106bed0378ab..ff3323ef8d8b 100644 --- a/ipc/util.c +++ b/ipc/util.c @@ -837,8 +837,10 @@ static int sysvipc_proc_show(struct seq_file *s, void *it) struct ipc_proc_iter *iter = s->private; struct ipc_proc_iface *iface = iter->iface; - if (it == SEQ_START_TOKEN) - return seq_puts(s, iface->header); + if (it == SEQ_START_TOKEN) { + seq_puts(s, iface->header); + return 0; + } return iface->show(s, it); } |