diff options
author | Colin Ian King <colin.king@canonical.com> | 2015-06-29 21:13:38 (GMT) |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2015-07-17 20:58:13 (GMT) |
commit | f4745a92781b872455f32feb01d1dce92aefcb6c (patch) | |
tree | 30551dcc7f0b7fa9188d832ec6ba804b35255fb4 /init | |
parent | 21bdb584af8cca7c6df3c44cba268be050a234eb (diff) | |
download | linux-f4745a92781b872455f32feb01d1dce92aefcb6c.tar.xz |
PM / clk: don't return int on __pm_clk_enable()
Static analysis by cppcheck found an issue that was recently introduced by
commit 471f7707b6f0b1 ("PM / clock_ops: make __pm_clk_enable more generic")
where a return status in ret was not being initialised and garbage
being returned when ce->status >= PCE_STATUS_ERROR.
The fact that ret is not being checked by the caller and that
ret is only used internally __pm_clk_enable() to check if clk_enable()
was OK means we can ignore returning it instead turn
__pm_clk_enable() into function with a void return.
Fixes: 471f7707b6f0b1 ("PM / clock_ops: make __pm_clk_enable more generic")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions