Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp2401618pxb; Thu, 4 Nov 2021 20:20:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy9oyZKLYzGvDqTlKjsv1qwlodwzGguS/f/SHLEhGpbLiV9EdrGip/wVKFXhvccLPTfJ99u X-Received: by 2002:a17:907:160a:: with SMTP id hb10mr35150628ejc.83.1636082415122; Thu, 04 Nov 2021 20:20:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1636082415; cv=none; d=google.com; s=arc-20160816; b=b92++keqrQEls+dSDyzmhCxBe7pCW771xs53fRWM824usTknRyVSZk52H/WxuuSOLb tcRaYMT2powZamoT8ddST/wrf6OLtBSUUseqkN+o92hFaw4UPLhz2LtLuramMi01IvNt 5yIp4H9/Vi8KFOxakER6civms8aZcIZQfgzz5516AzVKTYdu8ydhcuM6+fZTuo3wL0tm QJJ+/93aHpd4LDKLDLYeMu3npbd5PKn2d0LqGEuyRwraLcTGPq8wW26B7YfkWYxJ8+Vm uLaXEQiy8bIvD8ig+yQ93WPair6gX1VMiMi35KppljX75MZ7/INLp2qd7VX9pwxa4VQL L2hQ== 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 :message-id:date:subject:cc:to:from; bh=PriVsRGC42IrxewOCAhCJ8Ed3KaDlZDwMpxZj8W5MQg=; b=I85fivDw4tfP2jbQ5oCfK5eVu7SwUVxewGU1xx3KmjsLb76u5Cf/mF/xuXpUTgCVtP HItBHQKL5Ao6wnLxJbuivC9MSx/sE0XXms7HEZuIGoP2gr5x/qeK/QMGBB2e5yK0G3dl OhCrLMUmEgK8LIPFsmD6iUMtkec26kZuYVU1jFdiXzW4CcNjPcIVrubnFrtN4iaddFS5 a2yUtsoysPXwuAB2gYKkF5L5ewNhgJhwYfnQJd3WVSEoq9+fIrAOmyCCcEztLgpk86dB EYHpmOQmabtlzBtSBKyvbROBiP3gceZerEfIM7mfMt5BPUC3gXd8KqCU4trFwjXGF8lJ w5ow== 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 m1si13985009edc.187.2021.11.04.20.19.49; Thu, 04 Nov 2021 20:20:15 -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 S231607AbhKEBpT (ORCPT + 99 others); Thu, 4 Nov 2021 21:45:19 -0400 Received: from smtp21.cstnet.cn ([159.226.251.21]:41336 "EHLO cstnet.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S231186AbhKEBpS (ORCPT ); Thu, 4 Nov 2021 21:45:18 -0400 Received: from localhost.localdomain (unknown [124.16.141.244]) by APP-01 (Coremail) with SMTP id qwCowAD3jyD8i4RhvH6SBg--.14727S2; Fri, 05 Nov 2021 09:42:20 +0800 (CST) From: Xu Wang To: joel@jms.id.au, caihuoqing@baidu.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] net: ethernet: litex: Remove unnecessary print function dev_err() Date: Fri, 5 Nov 2021 01:42:17 +0000 Message-Id: <20211105014217.38681-1-vulab@iscas.ac.cn> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CM-TRANSID: qwCowAD3jyD8i4RhvH6SBg--.14727S2 X-Coremail-Antispam: 1UD129KBjvdXoWrZrWrWF45Kr47Kr1furWfZrb_yoWfXrcEqr n29a93Gw48Jr1Fyw10yrW3Zr9Ikrn8X348XaykKayaq34UCry7Z3sFvF1DJw4Uu397CFy7 try3Jay7C34SqjkaLaAFLSUrUUUUUb8apTn2vfkv8UJUUUU8Yxn0WfASr-VFAUDa7-sFnT 9fnUUIcSsGvfJTRUUUbc8YjsxI4VWkKwAYFVCjjxCrM7AC8VAFwI0_Jr0_Gr1l1xkIjI8I 6I8E6xAIw20EY4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM2 8CjxkF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVW5JVW7JwA2z4x0Y4vE2Ix0 cI8IcVCY1x0267AKxVWxJVW8Jr1l84ACjcxK6I8E87Iv67AKxVW8Jr0_Cr1UM28EF7xvwV C2z280aVCY1x0267AKxVW8Jr0_Cr1UM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVAC Y4xI64kE6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r106r15McIj6I8E87Iv67AKxVWUJV W8JwAm72CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41lc2xSY4AK67AK6w4l42xK 82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGw C20s026x8GjcxK67AKxVWUGVWUWwC2zVAF1VAY17CE14v26r126r1DMIIYrxkI7VAKI48J MIIF0xvE2Ix0cI8IcVAFwI0_Jr0_JF4lIxAIcVC0I7IYx2IY6xkF7I0E14v26r4j6F4UMI IF0xvE42xK8VAvwI8IcIk0rVWrJr0_WFyUJwCI42IY6I8E87Iv67AKxVWUJVW8JwCI42IY 6I8E87Iv6xkF7I0E14v26r4j6r4UJbIYCTnIWIevJa73UjIFyTuYvjxUqRpPUUUUU X-Originating-IP: [124.16.141.244] X-CM-SenderInfo: pyxotu46lvutnvoduhdfq/1tbiCwcPA1z4kkBX0wACsw Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The print function dev_err() is redundant because platform_get_irq() already prints an error. 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