[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAH+=+MGFxzENSy2stbgv5BQvgSbgKtsSnn2Fuj+O-zw8-2Ljfg@mail.gmail.com>
Date: Sun, 28 Oct 2012 00:19:04 +0800
From: Yan Hong <clouds.yan@...il.com>
To: Greg KH <gregkh@...uxfoundation.org>
Cc: linux-kernel@...r.kernel.org
Subject: Re: [PATCH 5/5] debugfs: remove goto in debugfs_remount()
2012/10/27 Greg KH <gregkh@...uxfoundation.org>:
> On Sat, Oct 27, 2012 at 04:05:29PM +0800, Yan Hong wrote:
>> Simple code clean to remove goto.
>
> There is nothing wrong with gotos on error paths, so this one should
> stay.
>
> greg k-h
I thought we use goto on error path because there is no other elegant
ways to do the things, but it sounds like goto is still welcome and preferable
when we are not in this case. Anyway, this is a simple clean, I do not insist
on it.
Thanks
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists