diff options
author | Xu Wang <[email protected]> | 2020-11-13 07:45:38 +0000 |
---|---|---|
committer | Alexandre Belloni <[email protected]> | 2020-11-14 23:52:09 +0100 |
commit | 910d002d84df21da61cadba92dd510ece5e46312 (patch) | |
tree | b2ee7f2208c9cf438a4e901388a743abf8e5b3bf | |
parent | 1eab0fea2514b269e384c117f5b5772b882761f0 (diff) |
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 <[email protected]>
Signed-off-by: Alexandre Belloni <[email protected]>
Acked-by: Florian Fainelli <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
-rw-r--r-- | drivers/rtc/rtc-brcmstb-waketimer.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/rtc/rtc-brcmstb-waketimer.c b/drivers/rtc/rtc-brcmstb-waketimer.c index 4fee57c51280..375a9987a1d6 100644 --- a/drivers/rtc/rtc-brcmstb-waketimer.c +++ b/drivers/rtc/rtc-brcmstb-waketimer.c @@ -264,8 +264,7 @@ err_notifier: unregister_reboot_notifier(&timer->reboot_notifier); err_clk: - if (timer->clk) - clk_disable_unprepare(timer->clk); + clk_disable_unprepare(timer->clk); return ret; } |