scsi: ufs: core: Conversion to bool not necessary
authorBragatheswaran Manickavel <bragathemanick0908@gmail.com>
Tue, 24 Oct 2023 18:34:01 +0000 (00:04 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 25 Oct 2023 02:44:35 +0000 (22:44 -0400)
commit6997283f64d968cf6bc8a68876930f67f48e1a6c
treebf66218afd98271cfe108cced3b6fa66e785ec1a
parenta5181c8955145431e809158ad370258f77c3b77f
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>
drivers/ufs/core/ufshcd.c