[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20201113074538.65028-1-vulab@iscas.ac.cn>
Date: Fri, 13 Nov 2020 07:45:38 +0000
From: Xu Wang <vulab@...as.ac.cn>
To: a.zummo@...ertech.it, alexandre.belloni@...tlin.com,
f.fainelli@...il.com, bcm-kernel-feedback-list@...adcom.com,
linux-rtc@...r.kernel.org, linux-arm-kernel@...ts.infradead.org
Cc: linux-kernel@...r.kernel.org
Subject: [PATCH] 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@...as.ac.cn>
---
drivers/rtc/rtc-brcmstb-waketimer.c | 3 +--
1 file changed, 1 insertion(+), 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 @@ 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;
}
--
2.17.1
Powered by blists - more mailing lists