]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit052a078a5337f572afac2f6cb38e5e1c0cf901d1
tree9bcf2b7b8a5a51346d88b3c7c16b16f24fd91f30
parent152c21153c170e647ad9839aabedb8fcdb6939ee
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