]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
cgroup: remove use of seq_printf return value
authorJoe Perches <joe@perches.com>
Tue, 7 Apr 2015 23:45:00 +0000 (09:45 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 7 Apr 2015 23:45:00 +0000 (09:45 +1000)
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>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
kernel/cgroup.c

index 747e953ffee9b850aa908f3c9fa70fda9cddd668..5f22c07d832d53b71a727882157c1bb68fc634de 100644 (file)
@@ -4199,7 +4199,9 @@ static void *cgroup_pidlist_next(struct seq_file *s, void *v, loff_t *pos)
 
 static int cgroup_pidlist_show(struct seq_file *s, void *v)
 {
-       return seq_printf(s, "%d\n", *(int *)v);
+       seq_printf(s, "%d\n", *(int *)v);
+
+       return 0;
 }
 
 static u64 cgroup_read_notify_on_release(struct cgroup_subsys_state *css,