Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp6331482rwb; Sun, 11 Dec 2022 23:48:54 -0800 (PST) X-Google-Smtp-Source: AA0mqf4Oz9jTKx6u88q7opxHbXREdTFI04NVUib7QeXzzO6bpYBz6fdvAHKZYXuOWuy2ivc//CL0 X-Received: by 2002:a05:6a20:939e:b0:ac:36bd:3f74 with SMTP id x30-20020a056a20939e00b000ac36bd3f74mr21585233pzh.34.1670831334117; Sun, 11 Dec 2022 23:48:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670831334; cv=none; d=google.com; s=arc-20160816; b=v67R0ncYJxq90GXurgtxcKcwm0CD2k44oIdhQrjQiB4z5+95OzzBlWBqve7Ibzb97r Urm41ZzHNuh7Y0T40gx1RrMa4L7p106HbDMeydWpOLk8FKl41JlgsTw904ytFfbSAPI6 B5xyILU8lkcMMDsYQBS61Yhy7Wq3JBAExV2NjpmtrJ3PYKqpca7EQUMlF9r04w7OOlKz SF8Qtnx6715GfU4eHhWzB+G8kCyvkMCejv9Am0un9BmSanwXgVVcNb2y+E13ElfO4njK 8odSFQebYRyX10bS/SY4+HTeVjbrlfeok09Ch5TvsRlSO0y4MQcK4c8ANfoDBJIkK5mx px3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=w6pEpoRmE1J0rcy6KXJBpJmGiPCXJTOQYInEfKuHgFg=; b=cjNnOln7uN4A1VypVLHvA3BFkVAON4Z29MlDhufbsrlITo1sG0RBE844pckShM0v9l k77ONjFtf77RcU3eS1twph7GUl+TQ3GxzsDZWfZSaVr+oAXy8pKdwXxLdncuO0fo7IPn YF/D5RDP6ohxAnFep0AxcsCPoGC8wYVB0UsEtbmTMTlrHT3C6jTc2HWk5JdgKbpFfXP9 Tn9izXY6ub39UkRtByUpGDJiQChO6MNKPNDaYQVyzc3ZvE9rXD5ohkxJtI+4Uh9JEOPG wOXepDhCxVm0EaZS2n0gabkYaONadpD7xJvXwnzoJPWMTldg4MCaPZTkalIxHlrahP8T Mrmg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b="j/7qqzGE"; 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 n8-20020a1709026a8800b0018976f06776si8324191plk.624.2022.12.11.23.48.43; Sun, 11 Dec 2022 23:48:54 -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="j/7qqzGE"; 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 S231224AbiLLHUM (ORCPT + 75 others); Mon, 12 Dec 2022 02:20:12 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55686 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231226AbiLLHUL (ORCPT ); Mon, 12 Dec 2022 02:20:11 -0500 Received: from mail-vs1-xe2f.google.com (mail-vs1-xe2f.google.com [IPv6:2607:f8b0:4864:20::e2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F5DFB1C1; Sun, 11 Dec 2022 23:20:08 -0800 (PST) Received: by mail-vs1-xe2f.google.com with SMTP id a66so1775516vsa.6; Sun, 11 Dec 2022 23:20:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=w6pEpoRmE1J0rcy6KXJBpJmGiPCXJTOQYInEfKuHgFg=; b=j/7qqzGE/fkep4jyatGZkxq9W3Bdj+qT3toLeHu/rgb6vfpfeZgGOlmJBzVU+gIOYf VJmwtx/wby4JD32dGdmay/St2F+k6Szf2Oc6c09B/X3McsB0y9b/1onyrryexYFppBG6 2AFPTgUchRTTZbQkfw/vOy5NTLodhF/HdrLierEsQB7O17Dd7i7xg+l/p7VrQDRxRTk9 KHWKgVo9HqQhsgd51q4JnT+50S540zkfdi2h3eOZR/JaQd5JLPW1QgCeFb7+Nk5DveVg o4JZq/QtudmyGGzO+mRHFpXRRhiY3w6sB6o3hmkNPB59gi1mjG0jL2oXIE7489iwcYQS GxSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=w6pEpoRmE1J0rcy6KXJBpJmGiPCXJTOQYInEfKuHgFg=; b=tDOXpuw5xmQib8+cW/2L5diVRS1pzoRQi5KQGmSxHYWDhyegmW5nMG5aN/24OwoL8T cFly9XG0SWuoNe+CXEFdxCUMevMTU5Nv5PdfQPazCvsX1JCLDedmn4AS9k+IYLsG+UXV jRzco9mUlZHjdzRw2ht2LSwr/U+7iqGPhpz9wVaa2tz8CXHIoixm44w4176Zve68YCRw ytYuYFuMP13N+xaHa26PC9vYE4RwBoxnYj0WfbOZy8SG4SEcihwG4+bcXdDsHSMpcIqw CWOpadSKQtoB+eY50UHsMUvwAlnlSjWfmB3QAJLSsoutXPd43GBFaJC/vWCUMKztULpM H/xw== X-Gm-Message-State: ANoB5plNe05xIkQro2WcoonbQ4sYT405+OlsgCsrJnlAyApegnL/c9rp tDqbjH9bldSvMSzEj0dKEAfz61Uz8OOdVp8w4XFsAoglUlfGzQw+ X-Received: by 2002:a67:fb59:0:b0:3b2:f408:e31d with SMTP id e25-20020a67fb59000000b003b2f408e31dmr5835913vsr.0.1670829607226; Sun, 11 Dec 2022 23:20:07 -0800 (PST) MIME-Version: 1.0 References: <20221211144722.754398-1-tegongkang@gmail.com> In-Reply-To: From: Kang Minchul Date: Mon, 12 Dec 2022 16:19:56 +0900 Message-ID: Subject: Re: [PATCH] net: ipa: Remove redundant dev_err() To: Heiner Kallweit Cc: Alex Elder , "David S . Miller" , Jakub Kicinski , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, 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 2022=EB=85=84 12=EC=9B=94 12=EC=9D=BC (=EC=9B=94) =EC=98=A4=EC=A0=84 1:34, = Heiner Kallweit =EB=8B=98=EC=9D=B4 =EC=9E=91=EC=84=B1= : > > 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_de= vice *pdev, bool prefetch, > > > > /* Get the GSI IRQ and request for it to wake the system */ > > ret =3D platform_get_irq_byname(pdev, "gsi"); > > - if (ret <=3D 0) { > > - dev_err(gsi->dev, > > - "DT error %d getting \"gsi\" IRQ property\n", ret= ); > > + if (ret <=3D 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. Thanks for your feedback! I just amended and sent v2. Regards, Kang Minchul