Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp271473pxx; Thu, 29 Oct 2020 02:07:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx80JlIrjSrsn9eAAV1IHKlkGzWFcHtQ31eZVlPnyV2n3jpXJ6lruDdBEXR4/l4jW76SK4O X-Received: by 2002:a05:6402:1590:: with SMTP id c16mr2959972edv.359.1603962464285; Thu, 29 Oct 2020 02:07:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603962464; cv=none; d=google.com; s=arc-20160816; b=sHfSdyhyeNIGEEdiCflsqnqXXA7ao5kzwAluKfx9ano3W8k54a1jiQ3Yh1snSHJg0S 6zglOrWZVcFEJnwDBCWXJNpWJMe7RCDz3K1ED6K5ud2eKOm624at7pOIt5rtpoffski2 LSXaTEmJiEjEb2C75gfxfiN50nC9KEyxABxxpVWiyhw2CExaZvt19OG5XMPn81qQ6Hg0 L518vb7bUkQLNka1Cl5l2ocCFRKsTJc7FP1QI64fkq+5AtDrsrWVuRr1369Fkqrk7z3v HWGlRImCv23Lr14BZw1uXtTx9buv3ZMg6FAK2BaLC2aQQv/VlKhw3dKa9YQu02RApg9y fy8w== 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=uJeaHsb4vNEhxzJOkSiBGQGwEhkYh5G4GU/lr06bzF4=; b=lKm9QBNzWGjjc2Jld9JvXj88h6u5zN9PzltR1pP6YO1u/PHisH7kT2EY/NTAvMbrb0 L521jFyun3skWt7R7d7b/9iD3lo3g3etsRzWI88T3y3K2rAMFa2Po8Q7SduaCZu9ik5v 9oTEFLNKlX5OO+I1+KANPCjykVp7JKnDOkYeL7EVXl4msxlt1R/TFMKWYI+hgtXdGMmL v++vDzkauZR6Drk9UFnHbW4rz4DOU0frIl6eFSsBIA7ij0rMbtwfmg9o6SLpqDQGokSu Od8CFvfMyW0MuUlC4D/cezw/nrOirST+FpcaSHctuE0fIDLDuH0QTkWBMJydsa1yZLud Niyg== 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 t12si2187786edc.298.2020.10.29.02.07.21; Thu, 29 Oct 2020 02:07:44 -0700 (PDT) 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 S1728647AbgJ2IZk (ORCPT + 99 others); Thu, 29 Oct 2020 04:25:40 -0400 Received: from smtp25.cstnet.cn ([159.226.251.25]:42834 "EHLO cstnet.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727146AbgJ2IZk (ORCPT ); Thu, 29 Oct 2020 04:25:40 -0400 Received: from localhost.localdomain (unknown [124.16.141.242]) by APP-05 (Coremail) with SMTP id zQCowABnV1BtfJpfZ51KAA--.28505S2; Thu, 29 Oct 2020 16:25:18 +0800 (CST) From: Xu Wang To: peter.ujfalusi@ti.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: ti: davinci-evm: Remove redundant null check before clk_disable_unprepare Date: Thu, 29 Oct 2020 08:25:13 +0000 Message-Id: <20201029082513.28233-1-vulab@iscas.ac.cn> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: zQCowABnV1BtfJpfZ51KAA--.28505S2 X-Coremail-Antispam: 1UD129KBjvdXoWrZFy8CFy8Aw45GFW8AFWkJFb_yoW3KFg_Aw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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/ti/davinci-evm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sound/soc/ti/davinci-evm.c b/sound/soc/ti/davinci-evm.c index 105e56ab9cdc..b043a0070d20 100644 --- a/sound/soc/ti/davinci-evm.c +++ b/sound/soc/ti/davinci-evm.c @@ -46,8 +46,7 @@ static void evm_shutdown(struct snd_pcm_substream *substream) struct snd_soc_card_drvdata_davinci *drvdata = snd_soc_card_get_drvdata(soc_card); - if (drvdata->mclk) - clk_disable_unprepare(drvdata->mclk); + clk_disable_unprepare(drvdata->mclk); } static int evm_hw_params(struct snd_pcm_substream *substream, -- 2.17.1