md-multipath: Use seq_putc() in multipath_status()

A single character (closing square bracket) should be put into a sequence.
Thus use the corresponding function "seq_putc".

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Shaohua Li <sh.li@alibaba-inc.com>
This commit is contained in:
Markus Elfring 2018-01-13 09:49:03 +01:00 коммит произвёл Shaohua Li
Родитель 56a64c177a
Коммит 3acdb7b514
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -157,7 +157,7 @@ static void multipath_status(struct seq_file *seq, struct mddev *mddev)
seq_printf (seq, "%s", rdev && test_bit(In_sync, &rdev->flags) ? "U" : "_"); seq_printf (seq, "%s", rdev && test_bit(In_sync, &rdev->flags) ? "U" : "_");
} }
rcu_read_unlock(); rcu_read_unlock();
seq_printf (seq, "]"); seq_putc(seq, ']');
} }
static int multipath_congested(struct mddev *mddev, int bits) static int multipath_congested(struct mddev *mddev, int bits)