From: Xu Wang Date: Fri, 8 Jan 2021 08:44:56 +0000 (+0000) Subject: ASoC: adau17x1: Remove redundant null check before clk_disable_unprepare X-Git-Tag: accepted/tizen/unified/20230118.172025~7091^2~1^2~197^2~109 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=554a1b00957ec1033994a2d03b5b8eac59a24f3c;p=platform%2Fkernel%2Flinux-rpi.git 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 Link: https://lore.kernel.org/r/20210108084456.6603-1-vulab@iscas.ac.cn Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/adau17x1.c b/sound/soc/codecs/adau17x1.c index 30e072c..546ee81 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);