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

Commit df724de3 authored by Arumuga Durai A's avatar Arumuga Durai A Committed by Gerrit - the friendly Code Review server
Browse files

USB: PHY: Avoid uninitialized variable error



Fix to avoid static analysis tool reports uninitialized
variable error in function set_msm_otg_perf_mode uses
this variable.

CRs-Fixed: 1070067
Change-Id: Ib5e26f2e67b4e741841fea9c211eb645b9e62f56
Signed-off-by: default avatarArumuga Durai A <cadurai@codeaurora.org>
parent 1873f86a
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3756,10 +3756,11 @@ set_msm_otg_perf_mode(struct device *dev, struct device_attribute *attr,
		ret = clk_set_rate(motg->core_clk, clk_rate);
		if (ret)
			pr_err("sys_clk set_rate fail:%d %ld\n", ret, clk_rate);
		msm_otg_dbg_log_event(&motg->phy, "OTG PERF SET",
							clk_rate, ret);
	} else {
		pr_err("usb sys_clk rate is undefined\n");
	}
	msm_otg_dbg_log_event(&motg->phy, "OTG PERF SET", clk_rate, ret);

	return count;
}