scsi: ufs: Remove redundant null checking of devfreq instance
authorStanley Chu <stanley.chu@mediatek.com>
Wed, 20 Jan 2021 15:01:41 +0000 (23:01 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 21 Jan 2021 03:29:38 +0000 (22:29 -0500)
commitb058fa868234fe835af4e3887b4f0d018a9220ed
tree6e4bf6649c8b6e4823d96e9af0e3843dd4f0e536
parentf9a7fa345aec28bc1c15a55572e016bbeb5f4254
scsi: ufs: Remove redundant null checking of devfreq instance

hba->devfreq is zero-initialized thus it is not required to check its
existence in ufshcd_add_lus() function which is invoked during
initialization only.

Link: https://lore.kernel.org/r/20210120150142.5049-3-stanley.chu@mediatek.com
Reviewed-by: Can Guo <cang@codeaurora.org>
Signed-off-by: Stanley Chu <stanley.chu@mediatek.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/ufs/ufshcd.c