mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
UPSTREAM: scsi: ufs: ufshcd: Delete unnecessary NULL check
The 'info' pointer points to somewhere in the middle of the 'hba' struct.
It can't possibly be NULL. Delete the NULL check.
Link: https://lore.kernel.org/r/YotFotj43TkB8Rid@kili
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Bug: 234653003
(cherry picked from commit 476e45923b)
Change-Id: I4eb49e0cd3a3fa6c3e885324fc69ba8b2a04aba8
Signed-off-by: Bart Van Assche <bvanassche@google.com>
This commit is contained in:
committed by
Bart Van Assche
parent
2d74ff4319
commit
b888195fee
@@ -8517,10 +8517,7 @@ static int ufshcd_init_hba_vreg(struct ufs_hba *hba)
|
||||
{
|
||||
struct ufs_vreg_info *info = &hba->vreg_info;
|
||||
|
||||
if (info)
|
||||
return ufshcd_get_vreg(hba->dev, info->vdd_hba);
|
||||
|
||||
return 0;
|
||||
return ufshcd_get_vreg(hba->dev, info->vdd_hba);
|
||||
}
|
||||
|
||||
static int ufshcd_setup_clocks(struct ufs_hba *hba, bool on)
|
||||
|
||||
Reference in New Issue
Block a user