summaryrefslogtreecommitdiff
path: root/fs/proc/array.c
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2015-04-16 02:18:17 +0300
committerLinus Torvalds <torvalds@linux-foundation.org>2015-04-16 02:35:25 +0300
commit25ce319167b517a913a2ba9fc80da8330dbc3249 (patch)
treec82bc2dc6322a950c1951cc3e7cf311ca2e4a8bc /fs/proc/array.c
parentc2f0b61d8969adf0dfb11aea7b700740fde6420b (diff)
downloadlinux-25ce319167b517a913a2ba9fc80da8330dbc3249.tar.xz
proc: 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 'fs/proc/array.c')
-rw-r--r--fs/proc/array.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/proc/array.c b/fs/proc/array.c
index 13f047ad08e4..fd02a9ebfc30 100644
--- a/fs/proc/array.c
+++ b/fs/proc/array.c
@@ -632,7 +632,9 @@ static int children_seq_show(struct seq_file *seq, void *v)
pid_t pid;
pid = pid_nr_ns(v, inode->i_sb->s_fs_info);
- return seq_printf(seq, "%d ", pid);
+ seq_printf(seq, "%d ", pid);
+
+ return 0;
}
static void *children_seq_start(struct seq_file *seq, loff_t *pos)