diff options
author | Olof Johansson <olof@lixom.net> | 2018-07-15 00:42:36 +0300 |
---|---|---|
committer | Olof Johansson <olof@lixom.net> | 2018-07-15 00:42:36 +0300 |
commit | 030f457a23788dc99bd41a464c6fd86da2598741 (patch) | |
tree | 7ff00b5729adb39c9cdb1efba5a31d7d902d311e | |
parent | 7af239f0c984dea5fb367a04c27712c61c43a121 (diff) | |
parent | 23cae492b4ed8cb2eb741f21a48bfd712960e87f (diff) | |
download | linux-030f457a23788dc99bd41a464c6fd86da2598741.tar.xz |
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: Olof Johansson <olof@lixom.net>
-rw-r--r-- | drivers/firmware/arm_scmi/perf.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/firmware/arm_scmi/perf.c b/drivers/firmware/arm_scmi/perf.c index 2a219b1261b1..721e6c57beae 100644 --- a/drivers/firmware/arm_scmi/perf.c +++ b/drivers/firmware/arm_scmi/perf.c @@ -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; } |