summaryrefslogtreecommitdiff
path: root/drivers/ufs/core
diff options
context:
space:
mode:
authorBragatheswaran Manickavel <bragathemanick0908@gmail.com>2023-10-24 21:34:01 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2023-10-25 05:44:35 +0300
commit6997283f64d968cf6bc8a68876930f67f48e1a6c (patch)
treebf66218afd98271cfe108cced3b6fa66e785ec1a /drivers/ufs/core
parenta5181c8955145431e809158ad370258f77c3b77f (diff)
downloadlinux-6997283f64d968cf6bc8a68876930f67f48e1a6c.tar.xz
scsi: ufs: core: Conversion to bool not necessary
A logical evaluation already results in bool. There is no need for using a ternary operator based evaluation and bool conversion of the outcome. Issue identified using boolconv.cocci Coccinelle semantic patch. Signed-off-by: Bragatheswaran Manickavel <bragathemanick0908@gmail.com> Link: https://lore.kernel.org/r/20231024183401.48888-1-bragathemanick0908@gmail.com Reviewed-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/ufs/core')
-rw-r--r--drivers/ufs/core/ufshcd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ufs/core/ufshcd.c b/drivers/ufs/core/ufshcd.c
index 24aa7a2de9da..5c1be0a2638b 100644
--- a/drivers/ufs/core/ufshcd.c
+++ b/drivers/ufs/core/ufshcd.c
@@ -2406,7 +2406,7 @@ static inline bool ufshcd_ready_for_uic_cmd(struct ufs_hba *hba)
int ret = read_poll_timeout(ufshcd_readl, val, val & UIC_COMMAND_READY,
500, UIC_CMD_TIMEOUT * 1000, false, hba,
REG_CONTROLLER_STATUS);
- return ret == 0 ? true : false;
+ return ret == 0;
}
/**