diff options
Diffstat (limited to 'drivers/md/raid1.c')
-rw-r--r-- | drivers/md/raid1.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/md/raid1.c b/drivers/md/raid1.c index 8f34ad5c478b..c2a21ae56d97 100644 --- a/drivers/md/raid1.c +++ b/drivers/md/raid1.c | |||
@@ -1132,7 +1132,7 @@ static int raid1_remove_disk(mddev_t *mddev, int number) | |||
1132 | p->rdev = rdev; | 1132 | p->rdev = rdev; |
1133 | goto abort; | 1133 | goto abort; |
1134 | } | 1134 | } |
1135 | md_integrity_register(mddev); | 1135 | err = md_integrity_register(mddev); |
1136 | } | 1136 | } |
1137 | abort: | 1137 | abort: |
1138 | 1138 | ||
@@ -2017,8 +2017,7 @@ static int run(mddev_t *mddev) | |||
2017 | 2017 | ||
2018 | mddev->queue->backing_dev_info.congested_fn = raid1_congested; | 2018 | mddev->queue->backing_dev_info.congested_fn = raid1_congested; |
2019 | mddev->queue->backing_dev_info.congested_data = mddev; | 2019 | mddev->queue->backing_dev_info.congested_data = mddev; |
2020 | md_integrity_register(mddev); | 2020 | return md_integrity_register(mddev); |
2021 | return 0; | ||
2022 | } | 2021 | } |
2023 | 2022 | ||
2024 | static int stop(mddev_t *mddev) | 2023 | static int stop(mddev_t *mddev) |