dm bio prison v2: use true/false for bool variable
authorzhengbin <zhengbin13@huawei.com>
Tue, 24 Dec 2019 06:38:01 +0000 (14:38 +0800)
committerMike Snitzer <snitzer@redhat.com>
Tue, 7 Jan 2020 17:07:08 +0000 (12:07 -0500)
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>
drivers/md/dm-bio-prison-v2.c

index 8ee019eda32d081620b542f9edfc4b12724d86a3..9dec3b61cf70a745914399867f7a75bb686f5004 100644 (file)
@@ -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;
        }