From patchwork Wed Jan 4 21:05:31 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christophe JAILLET X-Patchwork-Id: 3575 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp5358285wrt; Wed, 4 Jan 2023 13:11:26 -0800 (PST) X-Google-Smtp-Source: AMrXdXsdVBOe3WMvz51V02E2+uahTRAjyZFUN6BpjgbH95Wp+djxoHnCbED9TjwmHBpL0J+hzhmR X-Received: by 2002:a17:906:a186:b0:7c0:efbd:70a2 with SMTP id s6-20020a170906a18600b007c0efbd70a2mr46060639ejy.42.1672866686242; Wed, 04 Jan 2023 13:11:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672866686; cv=none; d=google.com; s=arc-20160816; b=qIDtzngUThfir3irdPm2E83IpDbVUORX5D2rz+cX+MXHVTRXjCBoVyw1jYJDKv8RMS fWuQOSzbW6E3Ta2viING1uDfkkNSXXtOf8jdETWUylYp2inQhNHFetMpFBySZUcNexEH VxzfGwp7r6HBanpAs+gdeEf4xmR6MNIkX0vpxyyXJaFT46bcfIkusC5jQsxruLRvO+Nk 9E3jzNGTIAggziVl9c735R0eIyRQKw28CN6Kbp/KL7Mxck1EMpt1RoL5fvh0yVfJ7x0j 9TlRXm8pww/BmEbiMcl9gVlVqXGV61DBoyqzht4oEDv5f2Mz6qc2gUSrWOhc2YullXFp bHsw== 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=udX/tzH+J4TiH1j0rrU/QVB00k+cEDxkjTttm98p7kE=; b=bFSI2Z59/3OTRMWIzKJMqHPPcsntoY4hC5qHmafKSdNQJZRo+gGGYnxakqBTfBg66z xznMmuimDA6V5570jase0UZGNsY27CQcSaZ2q8jRIJO27ZPGLCWXhM4SS5c6MdiqpRTU TlWghwiJX7HjZucvlxzPSQwHDE8jd6+RT6lEq3i+jMf1NAGN3wErAfSOdZpYj/GIGBph MSPTFmOUAAfLxxjVnK1FQRQQm46BGwakPEz8c1e6E31kJw7q4JmlHgxC6osNBhJe3pGq +JlaLfp4ztpN1ND1muQfh3ade0voyu9ghTF3UUIBq9f6amf2d67nEwt9z2kxE2MlCQIN nGbg== ARC-Authentication-Results: i=1; mx.google.com; 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 Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ds12-20020a170907724c00b0077bd074d50bsi28645581ejc.105.2023.01.04.13.11.01; Wed, 04 Jan 2023 13:11:26 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240212AbjADVGe (ORCPT + 99 others); Wed, 4 Jan 2023 16:06:34 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52674 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240263AbjADVGM (ORCPT ); Wed, 4 Jan 2023 16:06:12 -0500 Received: from smtp.smtpout.orange.fr (smtp-13.smtpout.orange.fr [80.12.242.13]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 213AF1CB2C for ; Wed, 4 Jan 2023 13:06:10 -0800 (PST) Received: from pop-os.home ([86.243.100.34]) by smtp.orange.fr with ESMTPA id DAxcpwWwVxN58DAxcpFlIl; Wed, 04 Jan 2023 22:06:09 +0100 X-ME-Helo: pop-os.home X-ME-Auth: Y2hyaXN0b3BoZS5qYWlsbGV0QHdhbmFkb28uZnI= X-ME-Date: Wed, 04 Jan 2023 22:06:09 +0100 X-ME-IP: 86.243.100.34 From: Christophe JAILLET To: "David S . Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, netdev@vger.kernel.org, Christophe JAILLET Subject: [PATCH net-next 0/3] ezchip: Simplify some code Date: Wed, 4 Jan 2023 22:05:31 +0100 Message-Id: X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754127858541833407?= X-GMAIL-MSGID: =?utf-8?q?1754127858541833407?= Theses patches (at least 1 and 2) can be seen as an RFC for net MAINTAINERS get see if they see any interest in: - axing useless netif_napi_del() calls, when free_netdev() is called just after. (patch 1) - simplifying code with axing the error handling path of the probe and the remove function in favor of using devm_ functions (patch 2) or if it doesn't not worth it and MAINTAINERS' time can be focused on more interesting topics than checking what is in fact only code clean-ups. The rational for patch 1 is based on Jakub's comment [1]. free_netdev() already cleans up NAPIs (see [2]). CJ [1]: https://lore.kernel.org/all/20221221174043.1191996a@kernel.org/ [2]: https://elixir.bootlin.com/linux/v6.2-rc1/source/net/core/dev.c#L10710 Christophe JAILLET (3): ezchip: Remove some redundant clean-up functions ezchip: Switch to some devm_ function to simplify code ezchip: Further clean-up drivers/net/ethernet/ezchip/nps_enet.c | 47 ++++++-------------------- 1 file changed, 10 insertions(+), 37 deletions(-)