projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ecc508
)
dm bio prison v2: use true/false for bool variable
author
zhengbin
<zhengbin13@huawei.com>
Tue, 24 Dec 2019 06:38:01 +0000
(14:38 +0800)
committer
Mike 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
patch
|
blob
|
history
diff --git
a/drivers/md/dm-bio-prison-v2.c
b/drivers/md/dm-bio-prison-v2.c
index 8ee019eda32d081620b542f9edfc4b12724d86a3..9dec3b61cf70a745914399867f7a75bb686f5004 100644
(file)
--- 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;
}