Received: by 2002:a05:6a10:2785:0:0:0:0 with SMTP id ia5csp151772pxb; Fri, 8 Jan 2021 01:01:08 -0800 (PST) X-Google-Smtp-Source: ABdhPJy/1zy0dogRWacZ9fJoa3mvE2IYiCLKYu0QsoEJYY1c2JjT7Q6V2/z3MDsz8QaW7HjLbYYG X-Received: by 2002:a05:6402:ca1:: with SMTP id cn1mr4594846edb.128.1610096468334; Fri, 08 Jan 2021 01:01:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610096468; cv=none; d=google.com; s=arc-20160816; b=Lcrw3QS+XkLI7jh3URj0u97kx46f9hRvS1OyBjczDDgdzK2IR5Grf6i4QKY0JHDVr6 1DeM1+4G3L/9LuqCPIulg/xh/sTSEJx4ZpaTYNT9L16f5T3sqttDrWDlGKB6k9xQw3kA pVpW6DvHEChZy0BoGWWJ9kFYTaoScRR9GfJlWOMUy2quaiGtIZn6YdTeJ6QqwOHRkEkY 53cu4jTeHy1/aYbj69nVbPJqcvcLq7uNoIajK85qXyVODjjMzMTcKI2cSjTD6rOz4CU5 KAlmIleSyPnX5ug5O9HIjSvvMLwuh6FQkep95WzjhHPojlgYraEgxF2Q62iwBsz9JiyF 1F2Q== 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=kLBWxR+1SNte4B/eihT65tNvSntJ4fwhxjuaQkyAamI=; b=A78vexHq54dpmygYdQ4YYlAR7FUfh+iUV1YiLXIJ6qzx8c5qQFP9EQorKld5JqyhkB TUbG2UEnaPWXoffXCdnoBeU4dit30izp0CPWJFn8pEg+lDh41+HzNCPplIG2qtVC/hp8 YvNlCR6x4dlR9y1vDPL6DDHC0wWPd+BO6Bj1J0bsb4VRdyN/5m3tDt9CMNxJ3D2nC5N0 qE1qPQ1FROlQZJ+cF+NCKwGIVlch+QBybDdvzVqDsSvh5HHvTYuPJ0DrrfB6gXpux7An OXgeQ6KW48BwHnRIPlV8FJlYd1KQHruOAi7k26tF4U3iWBWq9Lh1S95+jIkWxI+VDV1x e9ew== 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 w1si3530899edl.297.2021.01.08.01.00.45; Fri, 08 Jan 2021 01:01:08 -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 S1727582AbhAHI7g (ORCPT + 99 others); Fri, 8 Jan 2021 03:59:36 -0500 Received: from smtp21.cstnet.cn ([159.226.251.21]:35872 "EHLO cstnet.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726120AbhAHI7g (ORCPT ); Fri, 8 Jan 2021 03:59:36 -0500 Received: from localhost.localdomain (unknown [124.16.141.241]) by APP-01 (Coremail) with SMTP id qwCowABXXe29HvhfyLeaAQ--.6369S2; Fri, 08 Jan 2021 16:58:37 +0800 (CST) From: Xu Wang To: lgirdwood@gmail.com, broonie@kernel.org, perex@perex.cz, tiwai@suse.com, peter.ujfalusi@ti.com, kuninori.morimoto.gx@renesas.com, gustavoars@kernel.org, alsa-devel@alsa-project.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH] ASoC: es8328: Remove redundant null check before clk_disable_unprepare Date: Fri, 8 Jan 2021 08:58:34 +0000 Message-Id: <20210108085834.7168-1-vulab@iscas.ac.cn> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: qwCowABXXe29HvhfyLeaAQ--.6369S2 X-Coremail-Antispam: 1UD129KBjvdX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1tbiCQoPA102Z2nUrwABsQ 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/es8328.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sound/soc/codecs/es8328.c b/sound/soc/codecs/es8328.c index 7e26231a596a..b537300d0ce8 100644 --- a/sound/soc/codecs/es8328.c +++ b/sound/soc/codecs/es8328.c @@ -809,8 +809,7 @@ static void es8328_remove(struct snd_soc_component *component) es8328 = snd_soc_component_get_drvdata(component); - if (es8328->clk) - clk_disable_unprepare(es8328->clk); + clk_disable_unprepare(es8328->clk); regulator_bulk_disable(ARRAY_SIZE(es8328->supplies), es8328->supplies); -- 2.17.1