ext4: Use seq_putc() in two functions
Subsystems (2)
PATCH 1/1 ext4: Use seq_putc() in two functions
From: Markus Elfring <[email protected]>
Date: Sat, 13 Jul 2024 17:10:24 +0200
Single characters (line breaks) should be put into a sequence. Thus use the corresponding function “seq_putc”.
This issue was transformed by using the Coccinelle software.
Signed-off-by Markus Elfring <[email protected]>
--- fs/ext4/mballoc.c | 3 +-- fs/ext4/super.c | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-)
fs/ext4/mballoc.c +1 -2
@@ -3075,8 +3075,7 @@ static int ext4_mb_seq_groups_show(struct seq_file *seq, void *v)seq_puts (seq," ]" );if (EXT4_MB_GRP_BBITMAP_CORRUPT (&sg.info))seq_puts (seq," Block bitmap corrupted!" ); -seq_puts (seq,"\n" ); - +seq_putc (seq,'\n' );return 0 ; }
fs/ext4/super.c +1 -1
@@ -3045,7 +3045,7 @@ int ext4_seq_options_show(struct seq_file *seq, void *offset)seq_puts (seq,sb_rdonly (sb) ?"ro" :"rw" ); rc =_ext4_show_options (seq, sb,1 ); -seq_puts (seq,"\n" ); +seq_putc (seq,'\n' );return rc; }
--
2.45.2
Quoted 6 lines · Markus Elfring
Single characters (line breaks) should be put into a sequence. Thus use the corresponding function “seq_putc”.
This issue was transformed by using the Coccinelle software.
Applied, thanks!
[1/1] ext4: Use seq_putc() in two functions
commit: bd8daa7717d94752ecd4a60b67a928d7159c2825
Best regards,
Signature · 1 line
Theodore Ts'o <[email protected]>