[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230425150619.cj7ed2efnbvjk5mm@intel.intel>
Date: Tue, 25 Apr 2023 17:06:19 +0200
From: Andi Shyti <andi.shyti@...nel.org>
To: Jiawen Wu <jiawenwu@...stnetic.com>
Cc: netdev@...r.kernel.org, andrew@...n.ch, linux@...linux.org.uk,
jarkko.nikula@...ux.intel.com, olteanv@...il.com,
andriy.shevchenko@...ux.intel.com, hkallweit1@...il.com,
linux-i2c@...r.kernel.org, linux-gpio@...r.kernel.org,
mengyuanlou@...-swift.com
Subject: Re: [PATCH net-next v4 3/8] net: txgbe: Register I2C platform device
Hi Jiawen,
[...]
> + ret = txgbe_i2c_register(txgbe);
> + if (ret) {
> + wx_err(txgbe->wx, "failed to init i2c interface: %d\n", ret);
> + goto err_unregister_swnode;
> + }
> +
> return 0;
> +
> +err_unregister_swnode:
> + software_node_unregister_node_group(txgbe->nodes.group);
> +
> + return ret;
no need for the goto here... in my opinion it's easier if you put
software_node_unregister_node_group() under the if and return
ret.
Andi
Powered by blists - more mailing lists