Skip to content
Commit f4745a92 authored by Colin Ian King's avatar Colin Ian King Committed by Rafael J. Wysocki
Browse files

PM / clk: don't return int on __pm_clk_enable()



Static analysis by cppcheck found an issue that was recently introduced by
commit 471f7707 ("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: 471f7707 ("PM / clock_ops: make __pm_clk_enable more generic")
Signed-off-by: default avatarColin Ian King <colin.king@canonical.com>
Signed-off-by: default avatarRafael J. Wysocki <rafael.j.wysocki@intel.com>
parent 21bdb584
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment