From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B10BFC3DA7D for ; Thu, 5 Jan 2023 04:54:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230146AbjAEEyp (ORCPT ); Wed, 4 Jan 2023 23:54:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53376 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229759AbjAEEyn (ORCPT ); Wed, 4 Jan 2023 23:54:43 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [IPv6:2604:1380:4601:e00::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2D81A48839; Wed, 4 Jan 2023 20:54:42 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id E02A3B818F2; Thu, 5 Jan 2023 04:54:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4DAFBC433D2; Thu, 5 Jan 2023 04:54:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672894479; bh=3jGxlIIBUtNtU8F7fzNaR/sMnXA6GWowBwE8yID47R8=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=sYvGkKEGukfc64sbaHmt08pESFnbfWarRFkfT/O4/FYRdGF8I3boTRUCEdKs54bN8 pxs8QBjxTaOIfhtyZDlR28aAZlGc+vNDIyDWMR2q7qENzNNNrMKiADCXHCNv+c3Rd9 1H12lsJcagXjXbdAvP1jlalUHgFadKSLfWoma4cR3k+nf+18xtXrZVgDqhwcsL/ygA m2HoF8oojqEmUFg2qHTBMrRM1aM0Ar/vw7MyXFfJVRwxb9/VqPkMV/GyGyj9Q4iQP+ Rd+/50OasXEZ+hR47YgZ0p3xOGkcxqp1HSJ5FVmAQkDfy6E/ZKokl6zvKduEbv4e96 9odlMwB+6T1uA== Date: Wed, 4 Jan 2023 20:54:38 -0800 From: Jakub Kicinski To: Christophe JAILLET Cc: "David S . Miller" , Eric Dumazet , Paolo Abeni , linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org, netdev@vger.kernel.org Subject: Re: [PATCH net-next 2/3] ezchip: Switch to some devm_ function to simplify code Message-ID: <20230104205438.61a7dc20@kernel.org> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Wed, 4 Jan 2023 22:05:33 +0100 Christophe JAILLET wrote: > devm_alloc_etherdev() and devm_register_netdev() can be used to simplify > code. > > Now the error handling path of the probe and the remove function are > useless and can be removed completely. Right, but this is very likely a dead driver. Why invest in refactoring?