summaryrefslogtreecommitdiff
path: root/drivers/md/raid10.c
diff options
context:
space:
mode:
authorYufen Yu <yuyufen@huawei.com>2018-04-23 12:37:30 +0300
committerShaohua Li <shli@fb.com>2018-05-01 19:47:49 +0300
commit13db16d74c02c0e9b2d0dc9b9773c8e58ad41064 (patch)
treef29b1c76106f11f5a5d759b81b339d9c35556c5c /drivers/md/raid10.c
parent83beed7b2b26f232d782127792dd0cd4362fdc41 (diff)
downloadlinux-13db16d74c02c0e9b2d0dc9b9773c8e58ad41064.tar.xz
md: fix an error code format and remove unsed bio_sector
Signed-off-by: Yufen Yu <yuyufen@huawei.com> Signed-off-by: Shaohua Li <shli@fb.com>
Diffstat (limited to 'drivers/md/raid10.c')
-rw-r--r--drivers/md/raid10.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/raid10.c b/drivers/md/raid10.c
index 3c60774c8430..64300542ab20 100644
--- a/drivers/md/raid10.c
+++ b/drivers/md/raid10.c
@@ -2363,7 +2363,7 @@ static void fix_read_error(struct r10conf *conf, struct mddev *mddev, struct r10
{
int sect = 0; /* Offset from r10_bio->sector */
int sectors = r10_bio->sectors;
- struct md_rdev*rdev;
+ struct md_rdev *rdev;
int max_read_errors = atomic_read(&mddev->max_corr_read_errors);
int d = r10_bio->devs[r10_bio->read_slot].devnum;