mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 22:51:37 +00:00
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 1f33c41c03
("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>
This commit is contained in:
parent
4395eb1f16
commit
7f032d6ef6
4 changed files with 58 additions and 50 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue