Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp10640062pxu; Wed, 30 Dec 2020 07:43:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJzpgrLoQPL84pKw0VATskNQTuUTYIiKFCNRIDjfod6R/6FMbnJ3pTmqriBNgGVgL6AW/z8x X-Received: by 2002:a17:906:6d47:: with SMTP id a7mr50962747ejt.340.1609343015833; Wed, 30 Dec 2020 07:43:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609343015; cv=none; d=google.com; s=arc-20160816; b=xxX88X3vBvm6TMSgFqagvitWtick/8hxPwx3GT0kjb/LthucKRFOZb6TrY6JVAi49l sDknRsJWjccOsmtJFhtpZYlHwLG3jq5kotUccxVIJDExedoTVB2lJUREodQCH0rJHgtv mL1lZzEU6Zh86iifvANq8LhWtFPorV6nXpty0aUn9Jt1XUsgL4G1NVsTRMo56Px4m/Zy M2aBc5fKj+YYkFz6d3nT8Em4XT2LNFZP3gj81kceXwAKxmoo7kIv3FpelaYYqUuBQ0Va +BHDaM0/JXe7eYmSTQY2sZguVk29Q246gpRnjm1kMHlgQMng6FNcSgK23VjvO/aFG7KQ ncDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date; bh=ny6Qj9e7nP9jSYazKpYPAZLSq31CFDWkdU0E9QVabV0=; b=RJ5GdOpA+y2kX+iVnkFDgnA6NKGvlmuoNj7Lx2DtInfiXVqQYamAlgc8YVy4APs8rr lY43XduICoIJaAC0UgqQlxojPDWpFo2Jc9VVmax8G43iZbgbU1ysBeZJReBkdH7s5mpz 1q6CT020wC67Zr4Uk9G67IIbsOPR38NReuIj4HFIoVsxRlXnplRaC0R2Is69ZvbuSLTj l9C2YJ4vlHXUKee3+UIElK28uN3N2o8HhlBBAMIPYy7h3ROppTxruC/kS+1DOHDsnsvR Tvg424qEDFCIiUUV9TdxrbneevDeS6fK3FkuVkSariRyJviCP4uGuNwDYQFO2ugBgr7q UrEw== 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id lx6si22144759ejb.550.2020.12.30.07.43.13; Wed, 30 Dec 2020 07:43:35 -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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726640AbgL3Pl6 (ORCPT + 99 others); Wed, 30 Dec 2020 10:41:58 -0500 Received: from mail.kernel.org ([198.145.29.99]:45108 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726214AbgL3Pl6 (ORCPT ); Wed, 30 Dec 2020 10:41:58 -0500 Received: from archlinux (cpc108967-cmbg20-2-0-cust86.5-4.cable.virginm.net [81.101.6.87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2DB622222A; Wed, 30 Dec 2020 15:41:11 +0000 (UTC) Date: Wed, 30 Dec 2020 15:41:07 +0000 From: Jonathan Cameron To: Xu Wang Cc: lars@metafoo.de, pmeerw@pmeerw.net, mcoquelin.stm32@gmail.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH] iio: adc: stm32-dfsdm: Remove redundant null check before clk_disable_unprepare Message-ID: <20201230154107.4b301aed@archlinux> In-Reply-To: <20201218094145.1123-1-vulab@iscas.ac.cn> References: <20201218094145.1123-1-vulab@iscas.ac.cn> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 18 Dec 2020 09:41:45 +0000 Xu Wang wrote: > ecause clk_disable_unprepare() already checked NULL clock parameter, > so the additional check is unnecessary, just remove it. Please resend, making sure to cc linux-iio@vger.kernel.org Thanks, Jonathan > > Signed-off-by: Xu Wang > --- > drivers/iio/adc/stm32-dfsdm-core.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) > > diff --git a/drivers/iio/adc/stm32-dfsdm-core.c b/drivers/iio/adc/stm32-dfsdm-core.c > index 42a7377704a4..bb925a11c8ae 100644 > --- a/drivers/iio/adc/stm32-dfsdm-core.c > +++ b/drivers/iio/adc/stm32-dfsdm-core.c > @@ -117,8 +117,7 @@ static void stm32_dfsdm_clk_disable_unprepare(struct stm32_dfsdm *dfsdm) > { > struct dfsdm_priv *priv = to_stm32_dfsdm_priv(dfsdm); > > - if (priv->aclk) > - clk_disable_unprepare(priv->aclk); > + clk_disable_unprepare(priv->aclk); > clk_disable_unprepare(priv->clk); > } >