OSDN Git Service

scsi: ufs: Invert the return value of ufshcd_is_hba_active()
authorBart Van Assche <bvanassche@acm.org>
Tue, 19 Apr 2022 22:57:54 +0000 (15:57 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 26 Apr 2022 03:23:02 +0000 (23:23 -0400)
commitacbbfe484faac99d0088aa259e62a5b55aef3b39
tree9bcf2b7b8a5a51346d88b3c7c16b16f24fd91f30
parentaead21f32ae787af140233e32e18801dfd5185b1
scsi: ufs: Invert the return value of ufshcd_is_hba_active()

It is confusing that ufshcd_is_hba_active() returns 'true' if the HBA is
not active. Clear up this confusion by inverting the return value of
ufshcd_is_hba_active(). This patch does not change any functionality.

Link: https://lore.kernel.org/r/20220419225811.4127248-12-bvanassche@acm.org
Tested-by: Bean Huo <beanhuo@micron.com>
Reviewed-by: Avri Altman <avri.altman@wdc.com>
Reviewed-by: Bean Huo <beanhuo@micron.com>
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshcd.c