Commit 67b92d97 authored by zhengbin's avatar zhengbin Committed by Mike Snitzer

dm bio prison v2: use true/false for bool variable

Fixes coccicheck warning:

drivers/md/dm-bio-prison-v2.c:327:2-22: WARNING: Assignment of 0/1 to bool variable
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarzhengbin <zhengbin13@huawei.com>
Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
parent 4ecc5081
...@@ -324,7 +324,7 @@ static bool __unlock(struct dm_bio_prison_v2 *prison, ...@@ -324,7 +324,7 @@ static bool __unlock(struct dm_bio_prison_v2 *prison,
bio_list_init(&cell->bios); bio_list_init(&cell->bios);
if (cell->shared_count) { if (cell->shared_count) {
cell->exclusive_lock = 0; cell->exclusive_lock = false;
return false; return false;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment