scsi: ufs: core: Remove unnecessary ret in ufshcd_populate_vreg()
The local variable 'ret' is always zero. Remove it and return 0 at the end of the function. Link: https://lore.kernel.org/r/20210310082741.647-1-zbestahu@gmail.com Signed-off-by: Yue Hu <huyue2@yulong.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
4517e77eb8
commit
2a8561b78e
|
@ -106,7 +106,6 @@ out:
|
|||
static int ufshcd_populate_vreg(struct device *dev, const char *name,
|
||||
struct ufs_vreg **out_vreg)
|
||||
{
|
||||
int ret = 0;
|
||||
char prop_name[MAX_PROP_SIZE];
|
||||
struct ufs_vreg *vreg = NULL;
|
||||
struct device_node *np = dev->of_node;
|
||||
|
@ -135,9 +134,8 @@ static int ufshcd_populate_vreg(struct device *dev, const char *name,
|
|||
vreg->max_uA = 0;
|
||||
}
|
||||
out:
|
||||
if (!ret)
|
||||
*out_vreg = vreg;
|
||||
return ret;
|
||||
*out_vreg = vreg;
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue