diff options
author | Yu Kuai <yukuai3@huawei.com> | 2023-07-06 11:37:26 +0300 |
---|---|---|
committer | Song Liu <song@kernel.org> | 2023-07-27 10:13:30 +0300 |
commit | b4d129640f194ffc4cc64c3e97f98ae944c072e8 (patch) | |
tree | 8f9a626d4efe7c7751a08c14ddeee0e8272e5f10 | |
parent | 673643490b9a0eb3b25633abe604f62b8f63dba1 (diff) | |
download | linux-b4d129640f194ffc4cc64c3e97f98ae944c072e8.tar.xz |
md/md-bitmap: remove unnecessary local variable in backlog_store()
Local variable is definied first in the beginning of backlog_store(),
there is no need to define it again.
Fixes: 8c13ab115b57 ("md/bitmap: don't set max_write_behind if there is no write mostly device")
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Link: https://lore.kernel.org/r/20230706083727.608914-2-yukuai1@huaweicloud.com
Signed-off-by: Song Liu <song@kernel.org>
-rw-r--r-- | drivers/md/md-bitmap.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/md/md-bitmap.c b/drivers/md/md-bitmap.c index a58a4c30265e..1f3339961159 100644 --- a/drivers/md/md-bitmap.c +++ b/drivers/md/md-bitmap.c @@ -2569,8 +2569,6 @@ backlog_store(struct mddev *mddev, const char *buf, size_t len) mddev_destroy_serial_pool(mddev, NULL, false); } else if (backlog && !mddev->serial_info_pool) { /* serial_info_pool is needed since backlog is not zero */ - struct md_rdev *rdev; - rdev_for_each(rdev, mddev) mddev_create_serial_pool(mddev, rdev, false); } |