Skip to content
  • Joe Perches's avatar
    staging: lustre: Convert "return seq_printf(...)" uses · 8faeebdf
    Joe Perches authored
    The seq_printf return value, because it's frequently misused,
    will eventually be converted to void.
    
    See: commit 1f33c41c
    
     ("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: default avatarJoe Perches <joe@perches.com>
    Cc: Oleg Drokin <oleg.drokin@intel.com>
    Cc: Andreas Dilger <andreas.dilger@intel.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
    8faeebdf