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

Commit 47bce9e8 authored by Stepan Moskovchenko's avatar Stepan Moskovchenko Committed by David Keitel
Browse files

drivers: msm: Fix a handful of compiler warnings



Compiling the kernel with the -O2 GCC flag reveals a number
of warnings relating to potentially uninitialized variables
and other edge cases.

Change-Id: I3758dbe1af276d79f55188b9f2db850c730acb80
Signed-off-by: default avatarStepan Moskovchenko <stepanm@codeaurora.org>
[gbroner@codeaurora.org: drop changes to all file besides
ufs-msm.c and ufshcd.c]
Signed-off-by: default avatarGilad Broner <gbroner@codeaurora.org>
parent 892a7155
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1649,6 +1649,9 @@ static void msm_ufs_phy_calibrate(struct ufs_hba *hba)
	} else if ((major == 0x1) && (minor == 0x001) && (step == 0x0001)) {
		tbl_size = ARRAY_SIZE(phy_cal_table_ctrl_1_1_1_rate_A);
		tbl = phy_cal_table_ctrl_1_1_1_rate_A;
	} else {
		pr_err("%s: Unknown UFS controller type\n", __func__);
		return;
	}

	for (i = 0; i < tbl_size; i++)