projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b399629
)
dm mpath: use true/false for bool variable
author
zhengbin
<zhengbin13@huawei.com>
Tue, 24 Dec 2019 06:38:00 +0000
(14:38 +0800)
committer
Mike Snitzer
<snitzer@redhat.com>
Tue, 7 Jan 2020 17:06:56 +0000
(12:06 -0500)
Fixes coccicheck warning:
drivers/md/dm-mpath.c:1447:2-13: 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-mpath.c
patch
|
blob
|
history
diff --git
a/drivers/md/dm-mpath.c
b/drivers/md/dm-mpath.c
index e0c32793c24872a07cd504202447fcd102056369..97c095220c79d041ed131a827114808b7f67bde5 100644
(file)
--- a/
drivers/md/dm-mpath.c
+++ b/
drivers/md/dm-mpath.c
@@
-1444,7
+1444,7
@@
static void pg_init_done(void *data, int errors)
break;
case SCSI_DH_RETRY:
/* Wait before retrying. */
- delay_retry =
1
;
+ delay_retry =
true
;
/* fall through */
case SCSI_DH_IMM_RETRY:
case SCSI_DH_RES_TEMP_UNAVAIL: