mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-07 18:05:21 +02:00
ANDROID: dm-bow: Fix empty else blocks
drivers/md/dm-bow.c:1149:51: error: suggest braces around empty body in an ‘else’ statement [-Werror=empty-body] drivers/md/dm-bow.c:1142:51: error: suggest braces around empty body in an ‘else’ statement [-Werror=empty-body] Link to kernelci result: https://linux.kernelci.org/build/android/branch/android-mainline/kernel/v6.11-rc6-6389-g1cf1608b4abd8/ Build log: https://storage.kernelci.org/android/android-mainline/v6.11-rc6-6389-g1cf1608b4abd8/x86_64/allmodconfig/gcc-12/logs/kernel.log Bug: 366029436 Test: compiles Change-Id: I685754e895ef1cdfd7ab1ae323b36b4ae310a45d Signed-off-by: Paul Lawrence <paullawrence@google.com>
This commit is contained in:
parent
facb781dc9
commit
a1704797ee
|
@ -1138,18 +1138,15 @@ static int dm_bow_map(struct dm_target *ti, struct bio *bio)
|
||||||
ret = add_trim(bc, bio);
|
ret = add_trim(bc, bio);
|
||||||
else if (bio_data_dir(bio) == WRITE)
|
else if (bio_data_dir(bio) == WRITE)
|
||||||
ret = remove_trim(bc, bio);
|
ret = remove_trim(bc, bio);
|
||||||
else
|
/* else pass-through */
|
||||||
/* pass-through */;
|
|
||||||
} else if (state == CHECKPOINT) {
|
} else if (state == CHECKPOINT) {
|
||||||
if (bio->bi_iter.bi_sector == 0)
|
if (bio->bi_iter.bi_sector == 0)
|
||||||
ret = handle_sector0(bc, bio);
|
ret = handle_sector0(bc, bio);
|
||||||
else if (bio_data_dir(bio) == WRITE)
|
else if (bio_data_dir(bio) == WRITE)
|
||||||
ret = queue_write(bc, bio);
|
ret = queue_write(bc, bio);
|
||||||
else
|
/* else pass-through */
|
||||||
/* pass-through */;
|
|
||||||
} else {
|
|
||||||
/* pass-through */
|
|
||||||
}
|
}
|
||||||
|
/* else pass-through */
|
||||||
mutex_unlock(&bc->ranges_lock);
|
mutex_unlock(&bc->ranges_lock);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user