summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/ufs
diff options
context:
space:
mode:
authorJason Yan <yanaijie@huawei.com>2020-04-26 17:43:05 +0800
committerMartin K. Petersen <martin.petersen@oracle.com>2020-04-27 18:39:54 -0400
commit7dfdcc393dcdd63f4ea15d06c97a719451cfbb77 (patch)
tree782013dae3761c050750530b8814b6f1e2f44bea /drivers/scsi/ufs
parent655da8e57a46c009a07373c4fdcf9221b5a9b9a6 (diff)
downloadlinux-7dfdcc393dcdd63f4ea15d06c97a719451cfbb77.tar.bz2
scsi: ufs: Use true for bool variables in ufshcd_complete_dev_init()
Fix the following coccicheck warning: drivers/scsi/ufs/ufshcd.c:4140:6-14: WARNING: Assignment of 0/1 to bool variable. Link: https://lore.kernel.org/r/20200426094305.24083-1-yanaijie@huawei.com Signed-off-by: Jason Yan <yanaijie@huawei.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/ufs')
-rw-r--r--drivers/scsi/ufs/ufshcd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/ufs/ufshcd.c b/drivers/scsi/ufs/ufshcd.c
index 7d1fa1349d40..0291117dd987 100644
--- a/drivers/scsi/ufs/ufshcd.c
+++ b/drivers/scsi/ufs/ufshcd.c
@@ -4137,7 +4137,7 @@ static int ufshcd_complete_dev_init(struct ufs_hba *hba)
{
int i;
int err;
- bool flag_res = 1;
+ bool flag_res = true;
err = ufshcd_query_flag_retry(hba, UPIU_QUERY_OPCODE_SET_FLAG,
QUERY_FLAG_IDN_FDEVICEINIT, NULL);