]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: imx-audmux: remove unnecessary check of clk_disable_unprepare/clk_prepare_enable
authorMinghao Chi <chi.minghao@zte.com.cn>
Mon, 6 Jun 2022 03:37:05 +0000 (03:37 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 9 Jun 2022 10:57:46 +0000 (11:57 +0100)
commit80d9b783d5695ae9add41c4fdade538d617d3931
tree52ac922c074a870b6755711dc1500be3876ca42d
parent9352d298b43c49d491205a4f17f402603b26462d
ASoC: imx-audmux: remove unnecessary check of clk_disable_unprepare/clk_prepare_enable

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

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn>
Acked-by: Shengjiu Wang <shengjiu.wang@gmail.com>
Link: https://lore.kernel.org/r/20220606033705.291048-1-chi.minghao@zte.com.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/imx-audmux.c