Skip to content

Commit bd8daa7

Browse files
elfringtytso
authored andcommitted
ext4: use seq_putc() in two functions
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 <elfring@users.sourceforge.net> Link: https://patch.msgid.link/076974ab-4da3-4176-89dc-0514e020c276@web.de Signed-off-by: Theodore Ts'o <tytso@mit.edu>
1 parent 1a00a39 commit bd8daa7

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

fs/ext4/mballoc.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3075,8 +3075,7 @@ static int ext4_mb_seq_groups_show(struct seq_file *seq, void *v)
30753075
seq_puts(seq, " ]");
30763076
if (EXT4_MB_GRP_BBITMAP_CORRUPT(&sg.info))
30773077
seq_puts(seq, " Block bitmap corrupted!");
3078-
seq_puts(seq, "\n");
3079-
3078+
seq_putc(seq, '\n');
30803079
return 0;
30813080
}
30823081

fs/ext4/super.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3045,7 +3045,7 @@ int ext4_seq_options_show(struct seq_file *seq, void *offset)
30453045

30463046
seq_puts(seq, sb_rdonly(sb) ? "ro" : "rw");
30473047
rc = _ext4_show_options(seq, sb, 1);
3048-
seq_puts(seq, "\n");
3048+
seq_putc(seq, '\n');
30493049
return rc;
30503050
}
30513051

0 commit comments

Comments
 (0)