]> 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)
commit950b94c5b9c635c3c786ec5d8d67a4b2ed99597f
tree9bcf2b7b8a5a51346d88b3c7c16b16f24fd91f30
parentaa6b85870e421f3757f5b6c706e611e82a15232d
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