summaryrefslogtreecommitdiffstats
path: root/drivers/md/md-multipath.c
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2018-01-13 09:49:03 +0100
committerShaohua Li <sh.li@alibaba-inc.com>2018-02-17 13:00:35 -0800
commit3acdb7b514198d81ef7efcb2e86f498776ac10a7 (patch)
tree2a2d1fa14276a2bb62010737065c70613a7f5ba5 /drivers/md/md-multipath.c
parent56a64c177abd85a01c5881e195c363b7bda448f2 (diff)
downloadlinux-3acdb7b514198d81ef7efcb2e86f498776ac10a7.tar.bz2
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>
Diffstat (limited to 'drivers/md/md-multipath.c')
-rw-r--r--drivers/md/md-multipath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/md-multipath.c b/drivers/md/md-multipath.c
index e40065bdbfc8..0a7e99d62c69 100644
--- a/drivers/md/md-multipath.c
+++ b/drivers/md/md-multipath.c
@@ -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" : "_");
}
rcu_read_unlock();
- seq_printf (seq, "]");
+ seq_putc(seq, ']');
}
static int multipath_congested(struct mddev *mddev, int bits)