Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp3133891pxx; Mon, 2 Nov 2020 00:20:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJxPIrs+hYzh5n6fB8r6QOEYTefjS1PwGOsX9R8jfa1aqjAgiWQ1Lt3jqJ0rBu8YaVKdSzKU X-Received: by 2002:a17:906:7f0d:: with SMTP id d13mr13522813ejr.299.1604305227824; Mon, 02 Nov 2020 00:20:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604305227; cv=none; d=google.com; s=arc-20160816; b=cF+scQnjGzA74pkvgpmLS0dI5Wd8kt9dbWrBEF/fP8FVZ3bu8FIFaxnbvX71apHWBH k4c/M69CYiXz52cx0o2MZ4pyEjyHAn1p6H/ugL27eiL5GQQ6TfeNCvnWZXUSidlAlW/Z A/23BGRKAKIgU8GlZa9CoNPh5pJtkS6UVXHjNjNuN/a091teQH2AILcTu2D/aezI0VVi fDyzxXR5rzimeN7eybG19SFpHgu4tCeX6UdMg2fiNw6uuim8CHRm9vWFI1pyx+Cm5d07 7snZnnwBuRBaCc9gxAZcXWMwDzeO4MB2wx+2hpdq7yn2UT3yeFTUn6Q/KHt3oB3LOMOu QDuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=PKURKhrStf5hrU/3/FF8PfX58ZYAVeadBgvFHZofdUQ=; b=hYbHwwGSjvhf0TY8xvhdXpuMWXZhyo9kEzxxAZh4Q0DArtWYOHz7BVNdI6vA0pptDo ktXVHFpkia0WPoPwgFLitMYpvrWcIge0tM8Yqj7RmHB2eJhfkA2yVi/CNIgUdqSbIhNH qc91ycWtBFACag1feeGre422NCV+FskvRFRy+xSi5rHForyTq+PMx14RR6KYfh0ASjbc +seBAuOUzw+PZWk1ygSpvJlmo8qPlEHKMsLxacZa6t0ZV4Wu3EmB2bX3Vf4TLibyOEAl A2HgfLaiAuYTb4KC6J3+G6MjXGIU41L/4jXp0DZs9PeY8JwfWGxEsX+1XfNS1moTr9N4 W6Iw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=aBk9tP4x; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id qx1si9662594ejb.251.2020.11.02.00.20.05; Mon, 02 Nov 2020 00:20:27 -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; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=aBk9tP4x; 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; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728177AbgKBISg (ORCPT + 99 others); Mon, 2 Nov 2020 03:18:36 -0500 Received: from fllv0015.ext.ti.com ([198.47.19.141]:39810 "EHLO fllv0015.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727802AbgKBISg (ORCPT ); Mon, 2 Nov 2020 03:18:36 -0500 Received: from lelv0265.itg.ti.com ([10.180.67.224]) by fllv0015.ext.ti.com (8.15.2/8.15.2) with ESMTP id 0A28HkjG095958; Mon, 2 Nov 2020 02:17:46 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ti.com; s=ti-com-17Q1; t=1604305066; bh=PKURKhrStf5hrU/3/FF8PfX58ZYAVeadBgvFHZofdUQ=; h=Subject:To:CC:References:From:Date:In-Reply-To; b=aBk9tP4xdkqFm+ZsJtTWJASXy4g8DHzi/WCcG1PXOBg5cUc9e3Be39Cgu6md+6JbB H+acGNAdSqAMWLIvF5U3xqVqPO5z2Va273STE7hdctiLgeWib5IiY8tECBeHTeWLHk +V1nv47qCi57ZIlKmf+2BRKCwy10JTZEGpDjVXKY= Received: from DLEE103.ent.ti.com (dlee103.ent.ti.com [157.170.170.33]) by lelv0265.itg.ti.com (8.15.2/8.15.2) with ESMTPS id 0A28Hkj4016878 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=FAIL); Mon, 2 Nov 2020 02:17:46 -0600 Received: from DLEE101.ent.ti.com (157.170.170.31) by DLEE103.ent.ti.com (157.170.170.33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Mon, 2 Nov 2020 02:17:45 -0600 Received: from fllv0039.itg.ti.com (10.64.41.19) by DLEE101.ent.ti.com (157.170.170.31) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3 via Frontend Transport; Mon, 2 Nov 2020 02:17:46 -0600 Received: from [192.168.2.6] (ileax41-snat.itg.ti.com [10.172.224.153]) by fllv0039.itg.ti.com (8.15.2/8.15.2) with ESMTP id 0A28HiDm044386; Mon, 2 Nov 2020 02:17:44 -0600 Subject: Re: [PATCH] ASoC: ti: davinci-evm: Remove redundant null check before clk_disable_unprepare To: Xu Wang , , , , , CC: References: <20201029082513.28233-1-vulab@iscas.ac.cn> From: Peter Ujfalusi Message-ID: Date: Mon, 2 Nov 2020 10:18:24 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: <20201029082513.28233-1-vulab@iscas.ac.cn> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 29/10/2020 10.25, Xu Wang wrote: > Because clk_disable_unprepare() already checked NULL clock parameter, > so the additional check is unnecessary, just remove it. Acked-by: Peter Ujfalusi > 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, > - Péter Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki