Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5635934rwb; Tue, 1 Aug 2023 06:00:17 -0700 (PDT) X-Google-Smtp-Source: APBJJlFzapV02PoQ+4bgohN+eGUo4SQy/AuPsX8jmC4KRcwTe/jx/NbtoTVp0iAHRQ49urUJ8FeC X-Received: by 2002:a17:90b:1102:b0:263:ebab:a152 with SMTP id gi2-20020a17090b110200b00263ebaba152mr10434787pjb.19.1690894816458; Tue, 01 Aug 2023 06:00:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690894816; cv=none; d=google.com; s=arc-20160816; b=zX/vQHUqRofDxHKZ21OKK5r6s1lvjQA7P9OkoRR6tgSEDXuIoQWfhTRDMuM2Pn3ods xEuQfQcB0DypqbYiexDukJUtfidlwBL+bmMpxrI+sNA3XpWMt5tZhE7kObm6OM0FPdJY 3t7toxoERtWPt8ujMRjM1YmkmmhQ/a3ga5Ol6GWeywxx+XoSxxeuy2iguiX89qGURD+x T2u8nA9/y6qd9rqowEwH9STn/4/g2wMXxJIsGI+FZEspTGOPE6eh6wNdkTzAzGX1z0ts yrlxV9u/8eBjgGp2kz6zB/L/ADvVkY4Tfhpz+yHhxd4zuVn9SbG/JZoYSKkjNE3beIsS 3h8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=lUSZxUxJVRcnvJ4sobFgXrYil73npapr2l2ITiQG0aI=; fh=GDb0NjySuQqK5H0hgVtMH+tMWm+M7a3pd5d6Vy5eKXk=; b=Qkl8KK18SOZjq9X2OgcSwhGbwHuvrbaabx1i0RNQIKf/dNFm/KG6mSYQF/PxCqO5px FqfLnrchdGm736RrQ/T6O4AWws9IsBTPAdje/4TiKblYsYpcTPklhfThbmmPNLKoWKz0 wp5qXoQkZCXBDxd+l2QmKvNWkcdr9Mg4tONsY/xb6su/1E1BieA787GYvhtJJ3r5h1Hy 3zaHy2BbWJKCPKA4KMEwI8eYO2NwdUS2moBfaLg+tOED/wIeDwYtB9xUNVQw29hwFbQG cyReitf6dMW9ylFChaYro7WoyHKXygF/TY9bpk+aWNnxyyMBIwJ/3H33dmAaIskRAw4w h1kA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20221208 header.b=R4JtoyAC; 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 bt8-20020a17090af00800b0025bdaaf0d17si9222518pjb.33.2023.08.01.06.00.00; Tue, 01 Aug 2023 06:00:16 -0700 (PDT) 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=20221208 header.b=R4JtoyAC; 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 S232459AbjHAMFY (ORCPT + 99 others); Tue, 1 Aug 2023 08:05:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55066 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232208AbjHAMFJ (ORCPT ); Tue, 1 Aug 2023 08:05:09 -0400 Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8A8C199F; Tue, 1 Aug 2023 05:04:47 -0700 (PDT) Received: by mail-lf1-x132.google.com with SMTP id 2adb3069b0e04-4fbf09a9139so9019673e87.2; Tue, 01 Aug 2023 05:04:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690891485; x=1691496285; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=lUSZxUxJVRcnvJ4sobFgXrYil73npapr2l2ITiQG0aI=; b=R4JtoyAC+ocWiuXRjDbII6S1UVzNDhm8T75KcU5zkLavGT3YPmIQ1W7juoNacFKZN/ iiiYgiTgNiFGoHbPBBMg25bqR0hStWyd01S2A9NrlhyQW3KMeV6p0+hJHxJjR12gxBy0 3YwEMKdKrPZK+3YX3RochuoUuQbTbx/LTP1RtgnIw14RsunfZplVmvCoBHUBNBNyJ6Gp k5dQ9HTpa1uVW61pHHA88E/lZfO66wAe41nMRBzDR++yUghbBTzU5VpUNOWD8dgRUsXi 4gqWOVCkfP4/5elSfpaGenGVHrSGaBfJMb5eSpDJo/aKHSKT5YSryIDci1yuPK2Y8y3I 5r+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690891485; x=1691496285; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=lUSZxUxJVRcnvJ4sobFgXrYil73npapr2l2ITiQG0aI=; b=Rou/NosTIsbzvvCpmhyKLaj7Prvb8hCSVudy+949GmF/8nlVUs0O+EEq8B5wWHUCDm 9x0Up5XzRz8QN8UYNM6BHgXVwM0kpyks7j4SKVu9aKf2/suWVMjbbdEvbs5oJBryK67m irRdrPXmo3MAjiCE72FwC7Hc6nEuIB/TER5XxCGTk4dCjqOFjKzzclBB6rOZi7gbkoj9 FgVv/ocGwpftdLQUzMfEqsGNwc7Xpq5D84BzlaloDznE1D213bjlDSDQqoofesHbSdDP 7X0OkR0aoSFS2cH4BypnuMnv8soTMnHjgrGOyLPejlhax5LTsYsDyMHL/8vyg6TwmfA4 jTPg== X-Gm-Message-State: ABy/qLYDjJexVV4zgft3Joxu00GnKkRTbGldapmxHo7r+tEvafu+ofpy hDG/QNd6gVuzsr7H47HnJHY= X-Received: by 2002:ac2:43b7:0:b0:4f9:5d2a:e0f5 with SMTP id t23-20020ac243b7000000b004f95d2ae0f5mr1926958lfl.19.1690891485429; Tue, 01 Aug 2023 05:04:45 -0700 (PDT) Received: from fedora ([213.255.186.46]) by smtp.gmail.com with ESMTPSA id q19-20020ac25293000000b004fe0ab60530sm2552455lfm.49.2023.08.01.05.04.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Aug 2023 05:04:44 -0700 (PDT) Date: Tue, 1 Aug 2023 15:04:40 +0300 From: Matti Vaittinen To: Matti Vaittinen , Matti Vaittinen Cc: Marcin Wojtas , Russell King , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v8 8/8] net-next: mvpp2: don't shadow error Message-ID: <8c5b976a4ef9ba38fc952e9cf61848baa3e9dfe7.1690890774.git.mazziesaccount@gmail.com> References: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="PxwUsYkRvGz4sbiY" Content-Disposition: inline In-Reply-To: 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,T_SCC_BODY_TEXT_LINE 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 --PxwUsYkRvGz4sbiY Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Do not overwrite error from lower layers but return the actual error to user if obtaining an IRQ fails. Suggested-by: Andy Shevchenko Suggested-by: Jonathan Cameron Signed-off-by: Matti Vaittinen --- drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c b/drivers/net/= ethernet/marvell/mvpp2/mvpp2_main.c index 2632ffe91ca5..2aba34a2ca76 100644 --- a/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c +++ b/drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c @@ -5830,13 +5830,13 @@ static int mvpp2_multi_queue_vectors_init(struct mv= pp2_port *port, } =20 if (port_node) - v->irq =3D of_irq_get_byname(port_node, irqname); + ret =3D of_irq_get_byname(port_node, irqname); else - v->irq =3D fwnode_irq_get(port->fwnode, i); - if (v->irq < 0) { - ret =3D -EINVAL; + ret =3D fwnode_irq_get(port->fwnode, i); + if (ret < 0) goto err; - } + + v->irq =3D ret; =20 netif_napi_add(port->dev, &v->napi, mvpp2_poll); } --=20 2.40.1 --=20 Matti Vaittinen, Linux device drivers ROHM Semiconductors, Finland SWDC Kiviharjunlenkki 1E 90220 OULU FINLAND ~~~ "I don't think so," said Rene Descartes. Just then he vanished ~~~ Simon says - in Latin please. ~~~ "non cogito me" dixit Rene Descarte, deinde evanescavit ~~~ Thanks to Simon Glass for the translation =3D]=20 --PxwUsYkRvGz4sbiY Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEIx+f8wZb28fLKEhTeFA3/03aocUFAmTI9NgACgkQeFA3/03a ocU57QgArf8JlEqKVayQDw6bJdv8CBJaGdYYU28HD2CPjDvfvJ0f1p2wq5csZObK yX2//Sl3rq+CMldChgW1irUQJ+B5CnDqzgI8s+/IhVn2d5FAMwi54/W7GWOYzOsV W6po3q+HHPcYb/543T2OWPtm+025lgSIuASVmz5mmvM9gcwRT9q0n08+/nGoL+TO oUvnI6kl2NJ5Yk7mOl7ggWIhInZc9erugutrjmtgNJ7nodj5swLsesMOZiKco++m 0Rh/TX8529G62BcWzBigKE9AjWEZKZ3EvvYL60hknd+8nI+AGXCabs3ISmtlto2f YKltDbyq/4Pdub5V4SJuYKd0vaYG6g== =xXGU -----END PGP SIGNATURE----- --PxwUsYkRvGz4sbiY--