diff options
author | Xu Wang <vulab@iscas.ac.cn> | 2021-01-08 11:44:56 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2021-01-12 17:12:00 +0300 |
commit | 554a1b00957ec1033994a2d03b5b8eac59a24f3c (patch) | |
tree | 5dce0ee37b6cc648e6e5fc3927dbb26f30930ea2 /sound/soc/codecs/adau17x1.c | |
parent | 780b1a02c1795b58f217aabfd0688d616408bb89 (diff) | |
download | linux-554a1b00957ec1033994a2d03b5b8eac59a24f3c.tar.xz |
ASoC: adau17x1: 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@iscas.ac.cn>
Link: https://lore.kernel.org/r/20210108084456.6603-1-vulab@iscas.ac.cn
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/adau17x1.c')
-rw-r--r-- | sound/soc/codecs/adau17x1.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/codecs/adau17x1.c b/sound/soc/codecs/adau17x1.c index 30e072c80ac1..546ee8178038 100644 --- a/sound/soc/codecs/adau17x1.c +++ b/sound/soc/codecs/adau17x1.c @@ -1095,8 +1095,7 @@ void adau17x1_remove(struct device *dev) { struct adau *adau = dev_get_drvdata(dev); - if (adau->mclk) - clk_disable_unprepare(adau->mclk); + clk_disable_unprepare(adau->mclk); } EXPORT_SYMBOL_GPL(adau17x1_remove); |