[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAGRGNgUwtffHta-ZWpG_UeuTcp62GXAKpNJNYOLetRi7XvS-7g@mail.gmail.com>
Date: Wed, 1 Jun 2016 14:18:40 +1000
From: Julian Calaby <julian.calaby@...il.com>
To: Javier Martinez Canillas <javier@....samsung.com>
Cc: "linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
Xinming Hu <huxm@...vell.com>,
Amitkumar Karwar <akarwar@...vell.com>,
Kalle Valo <kvalo@...eaurora.org>,
netdev <netdev@...r.kernel.org>,
linux-wireless <linux-wireless@...r.kernel.org>,
Nishant Sarmukadam <nishants@...vell.com>
Subject: Re: [PATCH 4/8] mwifiex: consolidate mwifiex_sdio_probe() error paths
Hi All,
On Sat, May 28, 2016 at 12:18 AM, Javier Martinez Canillas
<javier@....samsung.com> wrote:
> Instead of duplicating part of the cleanups needed in case of an error
> in .probe callback, have a single error path and use goto labels as is
> common practice in the kernel.
>
> This also has the nice side effect that the cleanup operations are made
> in the inverse order of their counterparts, which was not the case for
> the mwifiex_add_card() error path.
>
> Signed-off-by: Javier Martinez Canillas <javier@....samsung.com>
This looks sensible to me.
Reviewed-by: Julian Calaby <julian.calaby@...il.com>
> ---
>
> drivers/net/wireless/marvell/mwifiex/sdio.c | 17 +++++++++++------
> 1 file changed, 11 insertions(+), 6 deletions(-)
Thanks,
--
Julian Calaby
Email: julian.calaby@...il.com
Profile: http://www.google.com/profiles/julian.calaby/
Powered by blists - more mailing lists