summaryrefslogtreecommitdiffstats
path: root/drivers/iio
diff options
context:
space:
mode:
authorXu Wang <vulab@iscas.ac.cn>2020-12-31 09:53:22 +0100
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2021-01-22 09:52:07 +0100
commitaa15e68409c634d00596cd66cfb07db0c8041290 (patch)
treeca6566338ad0ac976e84c8d82a47c66e3fc914a2 /drivers/iio
parentiio:pressure:ms5637: add ms5803 support (diff)
downloadlinux-aa15e68409c634d00596cd66cfb07db0c8041290.tar.xz
linux-aa15e68409c634d00596cd66cfb07db0c8041290.zip
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 <vulab@iscas.ac.cn> Link: https://lore.kernel.org/r/20201231085322.24398-1-vulab@iscas.ac.cn Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio')
-rw-r--r--drivers/iio/adc/stm32-dfsdm-core.c3
1 files changed, 1 insertions, 2 deletions
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);
}