Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2435544pxb; Thu, 4 Nov 2021 21:09:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0HObfaL2wZn+kbuS+PNnpOp+axGHHEzymbAMP1lX1oaQs3wYENv6HvNBqRdH9hAVDyewL X-Received: by 2002:a05:6e02:158c:: with SMTP id m12mr38653764ilu.64.1636085352854; Thu, 04 Nov 2021 21:09:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636085352; cv=none; d=google.com; s=arc-20160816; b=tMdjUiqyfNI/lloWmEu3W4ybUrxtDOqtYGwZi5RgPF2hevIWRjyJrM/7gQVS+evdSB P2HApks+bXp+/9m6B7A9nkJmY8KHCBbTqsA0lUkCFDgz3iDPgNdq74b5jdZCSnuRMaSj YM1FX9CEbNfUTSVUeyhcVYJLz8Xm6WkMLg044ucfLmkg7FcIV8tyd4llmxZnscZaTEXm 0+VBPtu9N52bfvquRvCSCA6GihLeyv6Iw3qo8v3wwChOa4mbiCE45zoOTA5R/Ywk6NBS jAiIARgORVfzo4W1ml3WSeg6O1tXgwYOpO9VJ0nyEk4tNdJVrD+yH9agUbLlUINJthJY zgXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=S4CYxScglZo4dUzCHXlgBRRI+ovBXvUtXWZkvec6HHI=; b=qBoAhz3Damr/WI675nzW8dDVtVAUuPulXWpPklnn8N7dKJ6YCzrIKiAn9VPPvVPi7x wVuk+iVcZXBpzN6uhdG/R6N/kQ+zxsiPlCQ8JRAzLbt8JzkOJXH6EIBp4p5wZCTEK98L Pj0C4eyDehSPHMedHCfALpLzEi5mI21MkJE1nJYOCcKBtX8B3yEljGmyQZGzalWKWd29 MN3eNZJ7w0H4NfgUrlatzSr7HbGmJd0MDYn61Hud9zKmGlDYZn7dE1jwgbor5lTdRg73 jR1lXob540eKbRN9QSklnUvmdgV3LXfG1tZokzt9au5dddB20j3rDhxU5607BZk5YFir MuaA== 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 n13si5422278ili.85.2021.11.04.21.08.58; Thu, 04 Nov 2021 21:09:12 -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 S231506AbhKEDRx (ORCPT + 99 others); Thu, 4 Nov 2021 23:17:53 -0400 Received: from mx22.baidu.com ([220.181.50.185]:51272 "EHLO baidu.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229685AbhKEDRw (ORCPT ); Thu, 4 Nov 2021 23:17:52 -0400 Received: from BC-Mail-EX08.internal.baidu.com (unknown [172.31.51.48]) by Forcepoint Email with ESMTPS id C3C0EC946A3D56BAE9FE; Fri, 5 Nov 2021 11:15:09 +0800 (CST) Received: from BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) by BC-Mail-EX08.internal.baidu.com (172.31.51.48) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2242.12; Fri, 5 Nov 2021 11:15:09 +0800 Received: from localhost (172.31.63.8) by BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.2308.14; Fri, 5 Nov 2021 11:15:09 +0800 Date: Fri, 5 Nov 2021 11:15:08 +0800 From: Cai Huoqing To: Xu Wang CC: , , Subject: Re: [PATCH] net: ethernet: litex: Remove unnecessary print function dev_err() Message-ID: <20211105031508.GA817@LAPTOP-UKSR4ENP.internal.baidu.com> References: <20211105014217.38681-1-vulab@iscas.ac.cn> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20211105014217.38681-1-vulab@iscas.ac.cn> User-Agent: Mutt/1.9.4 (2018-02-28) X-Originating-IP: [172.31.63.8] X-ClientProxiedBy: BC-Mail-Ex24.internal.baidu.com (172.31.51.18) To BJHW-MAIL-EX27.internal.baidu.com (10.127.64.42) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 05 11月 21 01:42:17, Xu Wang wrote: > The print function dev_err() is redundant because > platform_get_irq() already prints an error. > Reviewed-by: Cai Huoqing > Signed-off-by: Xu Wang > --- > drivers/net/ethernet/litex/litex_liteeth.c | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/drivers/net/ethernet/litex/litex_liteeth.c b/drivers/net/ethernet/litex/litex_liteeth.c > index 3d9385a4989b..ab9fa1525053 100644 > --- a/drivers/net/ethernet/litex/litex_liteeth.c > +++ b/drivers/net/ethernet/litex/litex_liteeth.c > @@ -242,10 +242,8 @@ static int liteeth_probe(struct platform_device *pdev) > priv->dev = &pdev->dev; > > irq = platform_get_irq(pdev, 0); > - if (irq < 0) { > - dev_err(&pdev->dev, "Failed to get IRQ %d\n", irq); > + if (irq < 0) > return irq; > - } > netdev->irq = irq; > > priv->base = devm_platform_ioremap_resource_byname(pdev, "mac"); > -- > 2.25.1 >