Skip to content

Commit

Permalink
dm bio prison v2: use true/false for bool variable
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
zhengbin authored and Mike Snitzer committed Jan 7, 2020
1 parent 4ecc508 commit 67b92d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/md/dm-bio-prison-v2.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,7 @@ static bool __unlock(struct dm_bio_prison_v2 *prison,
bio_list_init(&cell->bios);

if (cell->shared_count) {
cell->exclusive_lock = 0;
cell->exclusive_lock = false;
return false;
}

Expand Down

0 comments on commit 67b92d9

Please sign in to comment.