Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp588513ybz; Wed, 15 Apr 2020 14:38:31 -0700 (PDT) X-Google-Smtp-Source: APiQypJF20h8uWCsBb8bgEkMI9DDCspCKrWrFi7Aarv/llDHJPZkuTE9vjFnrLDey2E52283u+YI X-Received: by 2002:a50:9d42:: with SMTP id j2mr26621550edk.249.1586986711207; Wed, 15 Apr 2020 14:38:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586986711; cv=none; d=google.com; s=arc-20160816; b=LpEj59MfC5pWZ4SL4JhEPkTqzHw/Vp2kZb9c8RhV2WDTr6/xUaH8s0kbOoq+X0iYVy KLpcU1fOSF2S+60tUUtyy5u7myIat+9xzqyzPzMhMUydibU1kEBa5E+uMZYCTLG6Evxz htoExcJzQBIorDhENGxLZiZ9CSj0gy2LKorsOtLa10z2lYhGnLRGOojjVAeFnK9eah5h LsL8/awTfWueTYK8JzaVyQLPGI1E7qjHnIAIOMSKylGCz55p2BB3oLmTee06q9dKtcyi uaYxMyBJYANXzpVrv4HE6578coZ+ESlmcqEwgNNsF9ArV+Lew88uymocfZfGHVG9zyL0 t69Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=TZbF2ZuXbWL2T7jZ6aUgZn2EdFit9ORN4omzG75fb10=; b=E1GPWbDD2oIch52GPJ5BXYAHxDGBxB0ys2uEotQjCOAam5DKbT4/UES4A/hKIQgm/m j9KYxSMDfqxs3Lo4nj+dsvmtu14Yllri7YH9q9f5LPfISL5QZYedlm6yr887ALXH682r 2NK97P4jnmyyUR0VLqI5/AltOu7NYx3HHxii8hx12+vbpgEgpEpCchS57TglrWZrM0Bi jpntCag0K/p1vJuNt+yjgIti14QN7br6r2MFOrt3Y48IZBlVvtrFRxrOO+Iap4fH8zA/ Vldh5kG2xvT5t9BaNmeipVKTkXiGQIJ21jL0ASnfuST2/kyd4UlsD7UPnnUI++jthx7h e/lw== 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=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dp1si2154191ejc.163.2020.04.15.14.38.07; Wed, 15 Apr 2020 14:38:31 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391023AbgDNOim (ORCPT + 99 others); Tue, 14 Apr 2020 10:38:42 -0400 Received: from mga17.intel.com ([192.55.52.151]:17542 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390985AbgDNOih (ORCPT ); Tue, 14 Apr 2020 10:38:37 -0400 IronPort-SDR: zMqtUcD1gsEQCBsOXimFOQkyIo6qDmeg4oVAT9cfiecL6w0lPaXp6SVB5/2FKDZFGMOakMuDL2 jfxa8h88NU4w== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Apr 2020 07:38:37 -0700 IronPort-SDR: rm6d00DWkS4DoFutg4EYS4om06GEWiJAWju+GupMWGZ5nCt7BIPQ2zboBiVM0VZ1QZPJ9X7WLC iyqlNphP8ymg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.72,382,1580803200"; d="scan'208";a="298717797" Received: from smile.fi.intel.com (HELO smile) ([10.237.68.40]) by FMSMGA003.fm.intel.com with ESMTP; 14 Apr 2020 07:38:35 -0700 Received: from andy by smile with local (Exim 4.93) (envelope-from ) id 1jOMhx-000Y0b-Tb; Tue, 14 Apr 2020 17:38:37 +0300 Date: Tue, 14 Apr 2020 17:38:37 +0300 From: Andy Shevchenko To: Dejin Zheng Cc: linus.walleij@linaro.org, patrice.chotard@st.com, info@metux.net, allison@lohutok.net, nehal-bakulchandra.shah@amd.com, tglx@linutronix.de, linux-i2c@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1] i2c: img-scb: remove duplicate dev_err() Message-ID: <20200414143837.GV34613@smile.fi.intel.com> References: <20200414142650.29359-1-zhengdejin5@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200414142650.29359-1-zhengdejin5@gmail.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 14, 2020 at 10:26:50PM +0800, Dejin Zheng wrote: > it will print an error message by itself when platform_get_irq() > goes wrong. so don't need dev_err() in here again. In the future, please use something like this scripts/get_maintainer.pl --git --git-min-percent=67 when retrieve Cc list for the mail. FWIW, Reviewed-by: Andy Shevchenko > Signed-off-by: Dejin Zheng > --- > drivers/i2c/busses/i2c-img-scb.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/i2c/busses/i2c-img-scb.c b/drivers/i2c/busses/i2c-img-scb.c > index 422097a31c95..2f6de763816a 100644 > --- a/drivers/i2c/busses/i2c-img-scb.c > +++ b/drivers/i2c/busses/i2c-img-scb.c > @@ -1344,10 +1344,8 @@ static int img_i2c_probe(struct platform_device *pdev) > return PTR_ERR(i2c->base); > > irq = platform_get_irq(pdev, 0); > - if (irq < 0) { > - dev_err(&pdev->dev, "can't get irq number\n"); > + if (irq < 0) > return irq; > - } > > i2c->sys_clk = devm_clk_get(&pdev->dev, "sys"); > if (IS_ERR(i2c->sys_clk)) { > -- > 2.25.0 > -- With Best Regards, Andy Shevchenko