summaryrefslogtreecommitdiff
path: root/drivers/md
diff options
context:
space:
mode:
authorzhengbin <zhengbin13@huawei.com>2019-12-24 14:38:00 +0800
committerMike Snitzer <snitzer@redhat.com>2020-01-07 12:06:56 -0500
commit4ecc5081909ae70e4d988b643d54687cc53ba6eb (patch)
tree9033f1dfd50567c108e4abf179788c8954b8c868 /drivers/md
parentb39962950339912978484cdac50069258545d753 (diff)
dm mpath: use true/false for bool variable
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>
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/dm-mpath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-mpath.c b/drivers/md/dm-mpath.c
index e0c32793c248..97c095220c79 100644
--- 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: