From: Heinz Mauelshagen <heinzm@xxxxxxxxxx> Signed-off-by: heinzm <heinzm@xxxxxxxxxx> --- drivers/md/md-bitmap.c | 2 +- drivers/md/md.c | 8 ++++---- drivers/md/raid5.c | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/md/md-bitmap.c b/drivers/md/md-bitmap.c index e739efe2249d..b78b3647c4e7 100644 --- a/drivers/md/md-bitmap.c +++ b/drivers/md/md-bitmap.c @@ -2327,7 +2327,7 @@ location_store(struct mddev *mddev, const char *buf, size_t len) long long offset; if (strncmp(buf, "none", 4) == 0) - /* nothing to be done */; + ; /* nothing to be done */ else if (strncmp(buf, "file:", 5) == 0) { /* Not supported yet */ rv = -EINVAL; diff --git a/drivers/md/md.c b/drivers/md/md.c index b68b6d9dd8b6..858cbb5252df 100644 --- a/drivers/md/md.c +++ b/drivers/md/md.c @@ -2053,7 +2053,7 @@ static void super_1_sync(struct mddev *mddev, struct md_rdev *rdev) sb->feature_map |= cpu_to_le32(MD_FEATURE_CLUSTERED); if (rdev->badblocks.count == 0) - /* Nothing to do for bad blocks*/; + ; /* Nothing to do for bad blocks*/ else if (sb->bblog_offset == 0) /* Cannot record bad blocks on this device */ md_error(mddev, rdev); @@ -2676,7 +2676,7 @@ void md_update_sb(struct mddev *mddev, int force_change) !test_bit(Journal, &rdev->flags) && !test_bit(In_sync, &rdev->flags) && mddev->curr_resync_completed > rdev->recovery_offset) - rdev->recovery_offset = mddev->curr_resync_completed; + rdev->recovery_offset = mddev->curr_resync_completed; } if (!mddev->persistent) { @@ -5854,7 +5854,7 @@ int md_run(struct mddev *mddev) * Internal Bitmap issues have been handled elsewhere. */ if (rdev->meta_bdev) { - /* Nothing to check */; + ; /* Nothing to check */ } else if (rdev->data_offset < rdev->sb_start) { if (mddev->dev_sectors && rdev->data_offset + mddev->dev_sectors > rdev->sb_start) { @@ -6151,7 +6151,7 @@ static int restart_array(struct mddev *mddev) rcu_read_unlock(); if (test_bit(MD_HAS_JOURNAL, &mddev->flags) && !has_journal) /* Don't restart rw with journal missing/faulty */ - return -EINVAL; + return -EINVAL; if (has_readonly) return -EROFS; diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c index a1da82a72553..f418035da889 100644 --- a/drivers/md/raid5.c +++ b/drivers/md/raid5.c @@ -4811,7 +4811,7 @@ static void analyse_stripe(struct stripe_head *sh, struct stripe_head_state *s) } clear_bit(R5_Insync, &dev->flags); if (!rdev) - /* Not in-sync */; + ; /* Not in-sync */ else if (is_bad) { /* also not in-sync */ if (!test_bit(WriteErrorSeen, &rdev->flags) && @@ -7888,7 +7888,7 @@ static int raid5_run(struct mddev *mddev) */ if (abs(min_offset_diff) >= mddev->chunk_sectors && abs(min_offset_diff) >= mddev->new_chunk_sectors) - /* not really in-place - so OK */; + ; /* not really in-place - so OK */ else if (mddev->ro == 0) { pr_warn("md/raid:%s: in-place reshape must be started in read-only mode - aborting\n", mdname(mddev)); -- 2.39.2