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

Commit 030f457a authored by Olof Johansson's avatar Olof Johansson
Browse files

Merge tag 'scmi-update-4.19' of...

Merge tag 'scmi-update-4.19' of git://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux into next/drivers

SCMI cleanup for v4.19

Single patch removing some unnecessary NULL pointer checks.

* tag 'scmi-update-4.19' of git://git.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux

:
  firmware: arm_scmi: remove some unnecessary checks

Signed-off-by: default avatarOlof Johansson <olof@lixom.net>
parents 7af239f0 23cae492
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -363,8 +363,6 @@ static int scmi_dvfs_device_opps_add(const struct scmi_handle *handle,
		return domain;

	dom = pi->dom_info + domain;
	if (!dom)
		return -EIO;

	for (opp = dom->opp, idx = 0; idx < dom->opp_count; idx++, opp++) {
		freq = opp->perf * dom->mult_factor;
@@ -394,9 +392,6 @@ static int scmi_dvfs_transition_latency_get(const struct scmi_handle *handle,
		return domain;

	dom = pi->dom_info + domain;
	if (!dom)
		return -EIO;

	/* uS to nS */
	return dom->opp[dom->opp_count - 1].trans_latency_us * 1000;
}