Skip to content

Commit

Permalink
md/md-bitmap: remove unnecessary local variable in backlog_store()
Browse files Browse the repository at this point in the history
Local variable is definied first in the beginning of backlog_store(),
there is no need to define it again.

Fixes: 8c13ab1 ("md/bitmap: don't set max_write_behind if there is no write mostly device")
Signed-off-by: Yu Kuai <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Song Liu <[email protected]>
YuKuai-huawei authored and liu-song-6 committed Jul 27, 2023
1 parent 6736434 commit b4d1296
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions drivers/md/md-bitmap.c
Original file line number Diff line number Diff line change
@@ -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);
}

0 comments on commit b4d1296

Please sign in to comment.