Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp5620874rwb; Sun, 11 Dec 2022 09:16:15 -0800 (PST) X-Google-Smtp-Source: AA0mqf7rGVhC+81si1gWGwY+tFMlo2kMEGxmELsJDm63ByHK2YmuGYExan4J6YwYIliX3qFzgG0d X-Received: by 2002:a05:6a20:841f:b0:a4:64c7:a7f1 with SMTP id c31-20020a056a20841f00b000a464c7a7f1mr23067913pzd.14.1670778974809; Sun, 11 Dec 2022 09:16:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670778974; cv=none; d=google.com; s=arc-20160816; b=YvQ4E99m4uhphnt8827fk49L65WrUKHwQf5IWuplO2ElIx2fY1EYWK14rDgFe1C+yY t+bJsfny71Jso04w0jJbo10MitxSAmzYLpXaDKfUKNVH5qLJ6DWxpu3vdzj8ftxelCHW jzIem78E3KSCSZstJOveeCCR6uG/wjOpSUGWO632UY9I0tqjbVN06HQMVXEhOJtbhvhh 3ixNWt4uE4KrmswFVibpS6mh1GJdDtMiUr/A3at9opj/rlVT7gFIi4Vpf0IfQtJCqaX1 4BLFxPZAkzCLQD5gHYp8B65hDTHeCU+6d02f++QOr2xGFRQggGgWCEgyRXu1+mWq+hBU cUxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :content-language:references:cc:to:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=ll6kCX33+8s5cf4iHgOPaW3i8Vl4DHq71YOPP4oWCdQ=; b=ZwFvcK1nAilorLtgrTCCMx4NeS6sfegoKrswHE/hCW7KpTv1MTnPzbKmlqRi2yWFli /lO7+2xJM/cnSypO5ttxqYJVtnt6EQExnUHLk/ss+phJ3ji0hmN+odYJw4NjvYOWOnwm PgYkVSGlp+yjASto6Pqi9eEiraEcK1jGB7Q/lh64KDqLyOHJbbhq7a7Xe/Wf6gfeQ0S7 CClxzc5Ao5a++m7nONbVgZMOfZyHSV6B0Jh/uf70bUQe71a19hakKPe13zFIYRHGe6Km IeKzYFcWYzlt79bC+ahCUJLjxtvYrhuEsPVh8Z2UmPgddZ5SI960L7PM3eFNPgjTgqoD i/2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RZ1RbDsi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x28-20020a63b21c000000b0046eed2ed669si7355188pge.209.2022.12.11.09.16.05; Sun, 11 Dec 2022 09:16:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=RZ1RbDsi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230289AbiLKQeY (ORCPT + 75 others); Sun, 11 Dec 2022 11:34:24 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230135AbiLKQeV (ORCPT ); Sun, 11 Dec 2022 11:34:21 -0500 Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id ABC0A647C; Sun, 11 Dec 2022 08:34:20 -0800 (PST) Received: by mail-ej1-x62c.google.com with SMTP id vv4so22497227ejc.2; Sun, 11 Dec 2022 08:34:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=ll6kCX33+8s5cf4iHgOPaW3i8Vl4DHq71YOPP4oWCdQ=; b=RZ1RbDsik47vSTcGLGdHgmvZ8u1feKoyfhGemL8bPzoLg/g0Ex7Y/cYi7oqtU4vyje bwNF35X2pvFByb7Fyd6+QYYRi2ycOQUI65VMF7ZVpdBynonHPfLtLv988vml5Sr9DAcc 5buFZC4d6vU+QQql4jddEb2CrqFgUe/cZpcAvNlyUEZvw1tjxcljTVtyicdSIkfvluj1 +2DqeEsZI1ZVGIJnOoFXeb6uDmmz+CmGYCd551xZ5dpgNgziTYbPsZNlU0FQIFmENINp XptTlH8c3Be0qKtMJzIJEWAlNbz/N1h9+6S0VhKbac4SU2HuFdg7Fc6rpDqx3S8sSbi/ dGzA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=ll6kCX33+8s5cf4iHgOPaW3i8Vl4DHq71YOPP4oWCdQ=; b=1yHszkH1ZOjD9gQxcp0G/9Ab34znW6mRaMlUDxK4ql1S7t6esZ8qhizvaEDgAbHEDQ RfmZDGBH/lMdbHKvgPtVvxNDzWWY6OTqEPVSzSqkR774V3ENCO4nKmP3RkG5hR2mSawB gxDkBLvudnS3SW0zC9s/1neQTD3r+E44R3YDGMkRrVB7PGSkFBUVy73d7wwEN2KgzEkU IJHJWXjGt/hrtEHEg3Ceh30JjaLqxloeZ+NEwDe5psXfaQ5y4UL5SYphXFLhzBTc6ecc 7BJbzgWDG1oxPoCy6ePNOJVvALrDJOtQ6AFRPdwJArwwJVqk6S8iN670L4dC4tYJWe45 RkqQ== X-Gm-Message-State: ANoB5pkBF0tH2w06pH17AO+GvO93zwxJOiP4PpQPaE/4RcSFGFCoQe5h T0cVs1Qf3BZlsUt+ghgXYek= X-Received: by 2002:a17:906:5213:b0:7c1:3125:9564 with SMTP id g19-20020a170906521300b007c131259564mr10131461ejm.8.1670776459101; Sun, 11 Dec 2022 08:34:19 -0800 (PST) Received: from ?IPV6:2a01:c23:b8e1:2200:1956:d6ee:60e0:6ee2? (dynamic-2a01-0c23-b8e1-2200-1956-d6ee-60e0-6ee2.c23.pool.telefonica.de. [2a01:c23:b8e1:2200:1956:d6ee:60e0:6ee2]) by smtp.googlemail.com with ESMTPSA id r1-20020a1709061ba100b007bb32e2d6f5sm2180719ejg.207.2022.12.11.08.34.18 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 11 Dec 2022 08:34:18 -0800 (PST) Message-ID: Date: Sun, 11 Dec 2022 17:34:15 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.5.1 Subject: Re: [PATCH] net: ipa: Remove redundant dev_err() To: Kang Minchul , Alex Elder , "David S . Miller" , Jakub Kicinski Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <20221211144722.754398-1-tegongkang@gmail.com> Content-Language: en-US From: Heiner Kallweit In-Reply-To: <20221211144722.754398-1-tegongkang@gmail.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11.12.2022 15:47, Kang Minchul wrote: > Function dev_err() is redundant because platform_get_irq_byname() > already prints an error. > > Signed-off-by: Kang Minchul > --- > drivers/net/ipa/gsi.c | 5 +---- > 1 file changed, 1 insertion(+), 4 deletions(-) > > diff --git a/drivers/net/ipa/gsi.c b/drivers/net/ipa/gsi.c > index 55226b264e3c..585cfd3f9ec0 100644 > --- a/drivers/net/ipa/gsi.c > +++ b/drivers/net/ipa/gsi.c > @@ -1967,11 +1967,8 @@ int gsi_init(struct gsi *gsi, struct platform_device *pdev, bool prefetch, > > /* Get the GSI IRQ and request for it to wake the system */ > ret = platform_get_irq_byname(pdev, "gsi"); > - if (ret <= 0) { > - dev_err(gsi->dev, > - "DT error %d getting \"gsi\" IRQ property\n", ret); > + if (ret <= 0) According to the function description it can't return 0. You can further simplify the code. And you patch should be annotated net-next. > return ret ? : -EINVAL; > - } > irq = ret; > > ret = request_irq(irq, gsi_isr, 0, "gsi", gsi);