mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-01 10:45:49 +00:00
rtc: brcmstb-waketimer: Remove redundant null check before clk_disable_unprepare
Because clk_disable_unprepare() already checked NULL clock parameter, so the additional check is unnecessary, just remove it. Signed-off-by: Xu Wang <vulab@iscas.ac.cn> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Acked-by: Florian Fainelli <f.fainelli@gmail.com> Link: https://lore.kernel.org/r/20201113074538.65028-1-vulab@iscas.ac.cn
This commit is contained in:
parent
1eab0fea25
commit
910d002d84
@ -264,8 +264,7 @@ static int brcmstb_waketmr_probe(struct platform_device *pdev)
|
||||
unregister_reboot_notifier(&timer->reboot_notifier);
|
||||
|
||||
err_clk:
|
||||
if (timer->clk)
|
||||
clk_disable_unprepare(timer->clk);
|
||||
clk_disable_unprepare(timer->clk);
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user