mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-23 20:53:53 +08:00
clk: Remove impossible if condition in clk_core_get_phase()
This condition can't ever be true because this function is static and it's always called with a non-NULL pointer. Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
This commit is contained in:
parent
d7d131512b
commit
1f3e198342
@ -2182,16 +2182,12 @@ EXPORT_SYMBOL_GPL(clk_set_phase);
|
||||
|
||||
static int clk_core_get_phase(struct clk_core *core)
|
||||
{
|
||||
int ret = 0;
|
||||
|
||||
if (!core)
|
||||
goto out;
|
||||
int ret;
|
||||
|
||||
clk_prepare_lock();
|
||||
ret = core->phase;
|
||||
clk_prepare_unlock();
|
||||
|
||||
out:
|
||||
return ret;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(clk_get_phase);
|
||||
|
Loading…
Reference in New Issue
Block a user