[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <77a1611b-1609-ca74-39d0-3ecd16290219@web.de>
Date: Fri, 1 Nov 2019 21:14:33 +0100
From: Markus Elfring <Markus.Elfring@....de>
To: Haiyang Zhang <haiyangz@...rosoft.com>,
linux-hyperv@...r.kernel.org, netdev@...r.kernel.org
Cc: kernel-janitors@...r.kernel.org, linux-kernel@...r.kernel.org,
"David S. Miller" <davem@...emloft.net>,
"K. Y. Srinivasan" <kys@...rosoft.com>,
Olaf Hering <olaf@...fle.de>, Sasha Levin <sashal@...nel.org>,
Stephen Hemminger <sthemmin@...rosoft.com>,
Vitaly Kuznetsov <vkuznets@...hat.com>
Subject: Re: [PATCH net, 2/2] hv_netvsc: Fix error handling in netvsc_attach()
…
> +++ b/drivers/net/hyperv/netvsc_drv.c
> @@ -982,7 +982,7 @@ static int netvsc_attach(struct net_device *ndev,
> if (netif_running(ndev)) {
> ret = rndis_filter_open(nvdev);
> if (ret)
> - return ret;
> + goto err;
>
> rdev = nvdev->extension;
> if (!rdev->link_state)
…
I would prefer to specify the completed exception handling
(addition of two function calls) by a compound statement in
the shown if branch directly.
If you would insist to use a goto statement, I find an other label
more appropriate according to the Linux coding style.
Regards,
Markus
Powered by blists - more mailing lists