Commit 099309ec authored by Stanley Chu's avatar Stanley Chu Committed by Todd Kjos
Browse files

FROMGIT: 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: default avatarCan Guo <cang@codeaurora.org>
Signed-off-by: default avatarStanley Chu <stanley.chu@mediatek.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>

Bug: 189417930
(cherry picked from commit b058fa86
git://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git

 5.14/scsi-queue)
Change-Id: Ic91637050c684a67543499abdac9f7ab55d32a3a
Signed-off-by: default avatarCan Guo <cang@codeaurora.org>
parent 6440a2c0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment