Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp637611ybb; Fri, 20 Mar 2020 05:36:52 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtJl+q+BwRljr0ZmcUoqm0q0UK5kbUz9dNMOOviie1YPlhBoB4Eepq1sdYj+QnZyQp8DFeE X-Received: by 2002:aca:dec6:: with SMTP id v189mr6262888oig.156.1584707812724; Fri, 20 Mar 2020 05:36:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584707812; cv=none; d=google.com; s=arc-20160816; b=SPJi6qKyKjB/I9511YUOFUShATUSdqfPkO0SwqCZL9cgBDD5b9f15SO1roGtMbl+3m NnWHiPYdsV5hXmOQvK7K3KIZVVQ3x57WCVakb8WgP1471g0rW6RBm1bfQGu0ABVAVZJp MwdDT6sD9PMZlnXGuuluCmrN9X5Kt0nmZ2vgry02IFaZqN4QC96zVwWwJLKFtEJOuQQB tW2MaErJk9X5mMsq6WP4BumhVeIk/SDo+pY82flK0v8yyn6AqSdfzynIosOLk9dE6xm7 glmgCjd5htB21J5wKr2BXX3RyNxhPTk+6WMs7r32UsTbgZjhoRH9/dCefFMy14rLVnTT n/Qg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=VpaW0vnMjX6POQciIMNwAG+l8V+mk7Ane36/yWrGGVA=; b=rT7fqtXvK1WcQNH1qfIRYyesj4U4KGBdumv+ibRK2jcwDcsSEKgGHwHSNXA+7K0cGP RGxwO1jTrqGyD2C+h4sKDZoqL1Nv5TNcmKobwJ04gWa5zyGhxv8TbRIxIFf572EeCtYT JfRnge2NR0FGQMRhS4dH4icvpSvFOGR8rMDqgkfQJ9hLkR8Sf4uQjXioONh+JO+xoY8y qTr8KA8F4UW8NvGGImMzExdeAhzDigcPJC+6T0v1SHKsyQdpAeeZLSRkDaVITW6pGcpu MGalrIfF3D0XKn0o58gQGHWi3mvocjyt1TdytMagotLf3DmkWYwxQ838VyEZjXLjhk9p o00w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v7si3069062ote.74.2020.03.20.05.36.40; Fri, 20 Mar 2020 05:36:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726912AbgCTMes convert rfc822-to-8bit (ORCPT + 99 others); Fri, 20 Mar 2020 08:34:48 -0400 Received: from metis.ext.pengutronix.de ([85.220.165.71]:51681 "EHLO metis.ext.pengutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726814AbgCTMes (ORCPT ); Fri, 20 Mar 2020 08:34:48 -0400 Received: from pty.hi.pengutronix.de ([2001:67c:670:100:1d::c5]) by metis.ext.pengutronix.de with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jFGrF-0006BR-8f; Fri, 20 Mar 2020 13:34:37 +0100 Received: from ore by pty.hi.pengutronix.de with local (Exim 4.89) (envelope-from ) id 1jFGr4-0003GR-2A; Fri, 20 Mar 2020 13:34:26 +0100 Date: Fri, 20 Mar 2020 13:34:26 +0100 From: Oleksij Rempel To: Tang Bin Cc: linux@rempel-privat.de, s.hauer@pengutronix.de, shawnguo@kernel.org, linux-i2c@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drivers/i2c/busses/i2c-imx.c:remove duplicate print after platform_get_irq() Message-ID: <20200320123425.blnqxh3qpfzfl6ph@pengutronix.de> References: <20200318100748.17540-1-tangbin@cmss.chinamobile.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8BIT In-Reply-To: <20200318100748.17540-1-tangbin@cmss.chinamobile.com> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-IRC: #ptxdist @freenode X-Accept-Language: de,en X-Accept-Content-Type: text/plain X-Uptime: 13:31:04 up 126 days, 3:49, 159 users, load average: 0.03, 0.03, 0.00 User-Agent: NeoMutt/20170113 (1.7.2) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c5 X-SA-Exim-Mail-From: ore@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Mar 18, 2020 at 06:07:48PM +0800, Tang Bin wrote: > We don't need dev_err() message because when something goes wrong, > platform_get_irq() has print an error message itself, so we should > remove duplicate dev_err(). > > Signed-off-by: Tang Bin Acked-by: Oleksij Rempel Thank you. > --- > drivers/i2c/busses/i2c-imx.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/i2c/busses/i2c-imx.c b/drivers/i2c/busses/i2c-imx.c > index a3b61336f..01fd46682 100644 > --- a/drivers/i2c/busses/i2c-imx.c > +++ b/drivers/i2c/busses/i2c-imx.c > @@ -1066,10 +1066,8 @@ static int i2c_imx_probe(struct platform_device *pdev) > dev_dbg(&pdev->dev, "<%s>\n", __func__); > > irq = platform_get_irq(pdev, 0); > - if (irq < 0) { > - dev_err(&pdev->dev, "can't get irq number\n"); > + if (irq < 0) > return irq; > - } > > res = platform_get_resource(pdev, IORESOURCE_MEM, 0); > base = devm_ioremap_resource(&pdev->dev, res); > -- > 2.20.1.windows.1 > > > > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |