mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04: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 <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
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…
Reference in a new issue