diff options
author | zhengbin <zhengbin13@huawei.com> | 2019-12-24 14:38:01 +0800 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2020-01-07 12:07:08 -0500 |
commit | 67b92d979b70212d7b2272f6b86a4d9229ab1eac (patch) | |
tree | 22a847c17edaa08a03092f18d171bc2874424886 /drivers/md/dm-bio-prison-v2.c | |
parent | 4ecc5081909ae70e4d988b643d54687cc53ba6eb (diff) | |
download | linux-next-67b92d979b70212d7b2272f6b86a4d9229ab1eac.tar.gz |
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>
Diffstat (limited to 'drivers/md/dm-bio-prison-v2.c')
-rw-r--r-- | drivers/md/dm-bio-prison-v2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-bio-prison-v2.c b/drivers/md/dm-bio-prison-v2.c index 8ee019eda32d..9dec3b61cf70 100644 --- a/drivers/md/dm-bio-prison-v2.c +++ b/drivers/md/dm-bio-prison-v2.c @@ -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; } |