[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CA+55aFzY--F_2BiZ4-mkFh+0Oy1SX7nBw7cAsSni_iDOtwU-mw@mail.gmail.com>
Date: Tue, 27 May 2014 10:04:58 -0700
From: Linus Torvalds <torvalds@...ux-foundation.org>
To: Miklos Szeredi <miklos@...redi.hu>
Cc: Al Viro <viro@...iv.linux.org.uk>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
linux-fsdevel <linux-fsdevel@...r.kernel.org>
Subject: Re: [PATCH] vfs: fix vmplice_to_user()
On Tue, May 27, 2014 at 7:41 AM, Miklos Szeredi <miklos@...redi.hu> wrote:
>
> This patch fixes two bugs:
Mind if I change it to avoid the "goto"? I don't think goto is evil,
but in this case it doesn't seem to buy anything, except to perhaps
make the patch a bit smaller at the expense of making the result a bit
harder to read.
Replacing the
if (ret <= 0)
goto out;
with
if (ret > 0) {
...
}
also allows moving the various variable declarations closer to their use.
So something like the attached..
Linus
View attachment "patch.diff" of type "text/plain" (1472 bytes)
Powered by blists - more mailing lists