Skip to content
Commit 58a5e29c authored by Xu Wang's avatar Xu Wang Committed by Jonathan Cameron
Browse files

iio: adc: stm32-adc: Remove redundant null check before clk_prepare_enable/clk_disable_unprepare



Because clk_prepare_enable() and clk_disable_unprepare() already checked
NULL clock parameter, so the additional checks are unnecessary, just
remove them.

Signed-off-by: default avatarXu Wang <vulab@iscas.ac.cn>
Acked-by: default avatarFabrice Gasnier <fabrice.gasnier@foss.st.com>
Link: https://lore.kernel.org/r/20201218093512.871-1-vulab@iscas.ac.cn


Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 07fe995f
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment