summaryrefslogtreecommitdiffstats
path: root/fs/proc/array.c
diff options
context:
space:
mode:
authorJoe Perches2015-04-16 01:18:17 +0200
committerLinus Torvalds2015-04-16 01:35:25 +0200
commit25ce319167b517a913a2ba9fc80da8330dbc3249 (patch)
treec82bc2dc6322a950c1951cc3e7cf311ca2e4a8bc /fs/proc/array.c
parents390: remove use of seq_printf return value (diff)
downloadkernel-qcow2-linux-25ce319167b517a913a2ba9fc80da8330dbc3249.tar.gz
kernel-qcow2-linux-25ce319167b517a913a2ba9fc80da8330dbc3249.tar.xz
kernel-qcow2-linux-25ce319167b517a913a2ba9fc80da8330dbc3249.zip
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)