Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp146554pxb; Fri, 8 Jan 2021 00:49:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJzXg7C73/RMylqn0V8zCRqP335Ts1ajtibOteZcE0iY0AEVtIrTxaljVwTyuBB5hybXE8r7 X-Received: by 2002:aa7:d154:: with SMTP id r20mr4732400edo.258.1610095749768; Fri, 08 Jan 2021 00:49:09 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610095749; cv=none; d=google.com; s=arc-20160816; b=QHo0jgF49T4F80rI7LhUJHIQTN8RDgBw85QU24oU09R+U1KRmC+Xoszcc9/HJ1cqWd WAyKTQvP0h7cg5lDFda8I+zlSouXRPHmKNMSkDBPblVpkQA25mIa8NVnuJg99xERuHfa YcUHwM5+HSePPTNuip0HZmd7LzPns0fLWmvqDHLmPz9s2YvIqbdeSZO/ochymjWyeGZx dW20xkmZGcBXMNtGdp3dAMZgDtTD4nVNTZJlmyI/2i+VM5jE7R3n1m+8RfHuUOclE7Dv b/teyCCDVHGg+GMqa/NC0jlSGMq4xk+vSBj7DD9r1JRsx91NHS9FxWOWqBx6A7uPuDPq 866Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=f5Ps7kcflGHcQPN9rIXxGTqdVGI5PixcCd1yEZL3azY=; b=0QUecYLMpT5KwAJQJM8ZcKkxG0zuaeIqI75hYPTa2YfwyY0dbQZFvy1MqobaCXqzAP Ae207CyiXNULcehHmidvlkXIQxFmC6UkYwSzwktcwmT035uAA5/xZ5huEi1CxV5AYyNU ZJ2JBJDvqge7wuQ6UvZ8lVE22YTktRZnbfkGv3hG8ff+3gEY5EDt8ncW10UR7YSsWVGZ ZJncrEJJB+CNLuQvyT4rODcXCMHKDx5Bzg5CoASSjDwUBLQ1PGagOq5DSqGbYP736OGM nmzjMcKq7DGL/r15B3BvLip5AIjdzIuv2kZE/97yIcERf/YSceZsumrgSDA+slU9XbKT GJPA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 97si3478577edr.112.2021.01.08.00.48.45; Fri, 08 Jan 2021 00:49:09 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727855AbhAHIqG (ORCPT + 99 others); Fri, 8 Jan 2021 03:46:06 -0500 Received: from smtp21.cstnet.cn ([159.226.251.21]:56256 "EHLO cstnet.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727045AbhAHIqF (ORCPT ); Fri, 8 Jan 2021 03:46:05 -0500 Received: from localhost.localdomain (unknown [124.16.141.241]) by APP-01 (Coremail) with SMTP id qwCowAAXHxOKG_hfCUaaAQ--.6846S2; Fri, 08 Jan 2021 16:45:00 +0800 (CST) From: Xu Wang To: lars@metafoo.de, nuno.sa@analog.com, lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH] ASoC: adau17x1: Remove redundant null check before clk_disable_unprepare Date: Fri, 8 Jan 2021 08:44:56 +0000 Message-Id: <20210108084456.6603-1-vulab@iscas.ac.cn> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: qwCowAAXHxOKG_hfCUaaAQ--.6846S2 X-Coremail-Antispam: 1UD129KBjvdXoWrZFy8CFy8Aw45GF47uw15urg_yoW3GFb_Ja 18Wr4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Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Because clk_disable_unprepare() already checked NULL clock parameter, so the additional check is unnecessary, just remove it. Signed-off-by: Xu Wang --- sound/soc/codecs/adau17x1.c | 3 +-- 1 file changed, 1 insertion(+), 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); -- 2.17.1