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: Hulk Robot <hulkci@huawei.com>
Signed-off-by: zhengbin <zhengbin13@huawei.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
This commit is contained in:
zhengbin 2019-12-24 14:38:01 +08:00 committed by Mike Snitzer
parent 4ecc508190
commit 67b92d979b
1 changed files with 1 additions and 1 deletions

View File

@ -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;
} }