From: Xu Wang Date: Thu, 31 Dec 2020 08:53:22 +0000 (+0000) Subject: iio: adc: stm32-dfsdm: Remove redundant null check before clk_disable_unprepare X-Git-Tag: microblaze-v5.13~180^2~112^2~1 X-Git-Url: http://git.monstr.eu/?a=commitdiff_plain;h=aa15e68409c634d00596cd66cfb07db0c8041290;p=linux-2.6-microblaze.git iio: adc: stm32-dfsdm: Remove redundant null check before clk_disable_unprepare ecause clk_disable_unprepare() already checked NULL clock parameter, so the additional check is unnecessary, just remove it. Signed-off-by: Xu Wang Link: https://lore.kernel.org/r/20201231085322.24398-1-vulab@iscas.ac.cn Signed-off-by: Jonathan Cameron --- diff --git a/drivers/iio/adc/stm32-dfsdm-core.c b/drivers/iio/adc/stm32-dfsdm-core.c index 42a7377704a4..bb925a11c8ae 100644 --- a/drivers/iio/adc/stm32-dfsdm-core.c +++ b/drivers/iio/adc/stm32-dfsdm-core.c @@ -117,8 +117,7 @@ static void stm32_dfsdm_clk_disable_unprepare(struct stm32_dfsdm *dfsdm) { struct dfsdm_priv *priv = to_stm32_dfsdm_priv(dfsdm); - if (priv->aclk) - clk_disable_unprepare(priv->aclk); + clk_disable_unprepare(priv->aclk); clk_disable_unprepare(priv->clk); }