Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ee2536f4 authored by Sayali Lokhande's avatar Sayali Lokhande
Browse files

scsi: ufs: Fix use of uninitialized variable



This fixes possible use of uninitialized
ret variable in ufshcd_hba_vreg_set_hpm().

Change-Id: I7b0b9f1d565d7fc7220534e70763938eba6933e7
Signed-off-by: default avatarSayali Lokhande <sayalil@codeaurora.org>
parent 17aa9d79
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -10327,14 +10327,14 @@ static void ufshcd_hba_vreg_set_hpm(struct ufs_hba *hba)

	if (ufshcd_is_link_off(hba) ||
	    (ufshcd_is_link_hibern8(hba)
	     && ufshcd_is_power_collapse_during_hibern8_allowed(hba)))
	     && ufshcd_is_power_collapse_during_hibern8_allowed(hba))) {
		ret = ufshcd_setup_hba_vreg(hba, true);

		if (ret && (info->vdd_hba->enabled == false)) {
			dev_err(hba->dev, "vdd_hba is not enabled\n");
			BUG_ON(1);
		}
	}
}

/**
 * ufshcd_suspend - helper function for suspend operations