Commit cc753358 authored by Arnd Bergmann's avatar Arnd Bergmann

Merge tag 'scmi-fixes-4.17' of...

Merge tag 'scmi-fixes-4.17' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux into fixes

SCMI fix for v4.17

A single patch eliminating the redundant null pointer check detected
by CoverityScan("Array compared against 0")

* tag 'scmi-fixes-4.17' of ssh://gitolite.kernel.org/pub/scm/linux/kernel/git/sudeep.holla/linux:
  firmware: arm_scmi: remove redundant null check on array
parents ee370b42 d27a3c34
...@@ -284,7 +284,7 @@ scmi_clock_info_get(const struct scmi_handle *handle, u32 clk_id) ...@@ -284,7 +284,7 @@ scmi_clock_info_get(const struct scmi_handle *handle, u32 clk_id)
struct clock_info *ci = handle->clk_priv; struct clock_info *ci = handle->clk_priv;
struct scmi_clock_info *clk = ci->clk + clk_id; struct scmi_clock_info *clk = ci->clk + clk_id;
if (!clk->name || !clk->name[0]) if (!clk->name[0])
return NULL; return NULL;
return clk; return clk;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment