1
0
Fork 0
alistair23-linux/drivers/staging/lustre/lustre/llite
Joe Perches 8faeebdf15 staging: lustre: Convert "return seq_printf(...)" uses
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")

Convert these "return seq_printf(...)" uses to:

	seq_printf(seq, ...);
	return 0;

Done via cocci script:

@@
struct seq_file *seq;
@@

-	return
	\(seq_printf\|seq_puts\|seq_putc\)(seq,
	...);

+	return 0;

With some additional reformatting and typing post conversion.

Miscellanea:

o convert an rc++ use to a bool
o use seq_puts with fixed strings where appropriate

Signed-off-by: Joe Perches <joe@perches.com>
Cc: Oleg Drokin <oleg.drokin@intel.com>
Cc: Andreas Dilger <andreas.dilger@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2015-03-01 17:21:21 -08:00
..
Makefile staging: lustre: llite: remove ccflags from Makefile 2014-07-11 21:57:19 -07:00
dcache.c staging: lustre: llite: remove unused variable 2015-03-01 16:28:06 -08:00
dir.c Staging: lustre: Edit switch-case indent 2015-02-26 12:23:57 -08:00
file.c Staging: lustre: Remove space after the name of that function 2015-02-26 15:26:07 -08:00
llite_capa.c staging: lustre: Coalesce string fragments 2014-11-23 13:17:57 -08:00
llite_close.c staging: lustre: Coalesce string fragments 2014-11-23 13:17:57 -08:00
llite_internal.h switch ll_lookup_finish_locks() and ll_revalidate_it_finish() to inode 2015-02-17 22:14:37 -05:00
llite_lib.c staging: lustre: Remove space in function call. 2015-03-01 16:50:25 -08:00
llite_mmap.c Staging patches for 3.19-rc1 2014-12-15 18:06:13 -08:00
llite_nfs.c vfs: make first argument of dir_context.actor typed 2014-10-31 17:48:54 -04:00
llite_rmtacl.c staging: lustre: Coalesce string fragments 2014-11-23 13:17:57 -08:00
lloop.c Staging patches for 3.19-rc1 2014-12-15 18:06:13 -08:00
lproc_llite.c staging: lustre: Convert "return seq_printf(...)" uses 2015-03-01 17:21:21 -08:00
namei.c switch ll_lookup_finish_locks() and ll_revalidate_it_finish() to inode 2015-02-17 22:14:37 -05:00
remote_perm.c lustre: Deletion of unnecessary checks before three function calls 2014-12-02 16:52:37 -08:00
rw.c staging: lustre: Coalesce string fragments 2014-11-23 13:17:57 -08:00
rw26.c Staging: lustre: llite: Use () around long macro 2014-10-23 11:09:12 +08:00
statahead.c Staging patches for 3.19-rc1 2014-12-15 18:06:13 -08:00
super25.c staging/lustre/llite: remove llite proc root on init failure 2015-02-07 17:31:10 +08:00
symlink.c staging: lustre: Coalesce string fragments 2014-11-23 13:17:57 -08:00
vvp_dev.c drivers: staging: lustre: Fix space required after that ',' errors 2014-08-30 12:05:39 -07:00
vvp_internal.h staging: lustre: llite: remove ccflags from Makefile 2014-07-11 21:57:19 -07:00
vvp_io.c staging/lustre/llite: Solve a race to access lli_has_smd in read case 2015-02-07 17:32:33 +08:00
vvp_lock.c staging/lustre/llite: Solve a race to access lli_has_smd in read case 2015-02-07 17:32:33 +08:00
vvp_object.c staging: lustre: llite: remove ccflags from Makefile 2014-07-11 21:57:19 -07:00
vvp_page.c staging: lustre: Coalesce string fragments 2014-11-23 13:17:57 -08:00
xattr.c Staging patches for 3.19-rc1 2014-12-15 18:06:13 -08:00
xattr_cache.c staging: lustre: lustre: llite: Use kstrdup 2014-10-27 10:33:05 +08:00