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 8304CC77B7A for ; Tue, 30 May 2023 10:46:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231631AbjE3KqZ (ORCPT ); Tue, 30 May 2023 06:46:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39550 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231689AbjE3Kps (ORCPT ); Tue, 30 May 2023 06:45:48 -0400 Received: from fgw22-7.mail.saunalahti.fi (fgw22-7.mail.saunalahti.fi [62.142.5.83]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7965B102 for ; Tue, 30 May 2023 03:45:29 -0700 (PDT) Received: from localhost (88-113-26-95.elisa-laajakaista.fi [88.113.26.95]) by fgw22.mail.saunalahti.fi (Halon) with ESMTP id 0eace6de-fed7-11ed-a9de-005056bdf889; Tue, 30 May 2023 13:45:15 +0300 (EEST) From: andy.shevchenko@gmail.com Date: Tue, 30 May 2023 13:45:13 +0300 To: Jiawen Wu Cc: 'Andy Shevchenko' , 'Hans de Goede' , netdev@vger.kernel.org, jarkko.nikula@linux.intel.com, mika.westerberg@linux.intel.com, jsd@semihalf.com, Jose.Abreu@synopsys.com, andrew@lunn.ch, hkallweit1@gmail.com, linux@armlinux.org.uk, linux-i2c@vger.kernel.org, linux-gpio@vger.kernel.org, mengyuanlou@net-swift.com, 'Piotr Raczynski' Subject: Re: [PATCH net-next v9 1/9] net: txgbe: Add software nodes to support phylink Message-ID: References: <20230524091722.522118-1-jiawenwu@trustnetic.com> <20230524091722.522118-2-jiawenwu@trustnetic.com> <038901d992bd$863a6b30$92af4190$@trustnetic.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <038901d992bd$863a6b30$92af4190$@trustnetic.com> Precedence: bulk List-ID: X-Mailing-List: linux-i2c@vger.kernel.org Tue, May 30, 2023 at 02:11:08PM +0800, Jiawen Wu kirjoitti: > On Saturday, May 27, 2023 4:44 PM, Andy Shevchenko wrote: > > On Wed, May 24, 2023 at 05:17:14PM +0800, Jiawen Wu wrote: ... > > > +int txgbe_init_phy(struct txgbe *txgbe) > > > +{ > > > + int ret; > > > + > > > + ret = txgbe_swnodes_register(txgbe); > > > + if (ret) { > > > + wx_err(txgbe->wx, "failed to register software nodes\n"); > > > > > + return ret; > > > + } > > > + > > > + return 0; > > > > These 4 lines can be as simple as > > > > return ret; > > This function is going to be extended with later patches, is it necessary to > simply it here? Nope, thank you for elaboration. > > > +} -- With Best Regards, Andy Shevchenko