From: David Howells <dhowells@redhat.com>
To: Marc Dionne <marc.c.dionne@gmail.com>
Cc: dhowells@redhat.com,
"Gustavo A. R. Silva" <gustavo@embeddedor.com>,
linux-afs@lists.infradead.org,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] afs: Fix logically dead code in afs_update_cell
Date: Tue, 28 May 2019 17:11:57 +0100 [thread overview]
Message-ID: <8581.1559059917@warthog.procyon.org.uk> (raw)
In-Reply-To: <CAB9dFdtT0p+Sg5=qt=Te9FEkASXcH=ZQZRHyN1UQ3nYkDLHMpQ@mail.gmail.com>
Marc Dionne <marc.c.dionne@gmail.com> wrote:
> > diff --git a/fs/afs/cell.c b/fs/afs/cell.c
> > index 9c3b07ba2222..980de60bf060 100644
> > --- a/fs/afs/cell.c
> > +++ b/fs/afs/cell.c
> > @@ -387,7 +387,6 @@ static int afs_update_cell(struct afs_cell *cell)
> > if (ret == -ENOMEM)
> > goto out_wake;
> >
> > - ret = -ENOMEM;
> > vllist = afs_alloc_vlserver_list(0);
> > if (!vllist)
> > goto out_wake;
>
> Looks like the intention here was to return -ENOMEM when
> afs_alloc_vlserver_list fails, which would mean that the fix should
> move the assignment within if (!vllist), rather than just removing it.
> Although it might be fine to just return the error that came from
> afs_dns_query instead, as you do in this patch.
I think I'd rather return the original error as this patch effects. I'm
having a ponder on it.
David
prev parent reply other threads:[~2019-05-28 16:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-05-27 16:54 [PATCH] afs: Fix logically dead code in afs_update_cell Gustavo A. R. Silva
2019-05-28 15:42 ` Marc Dionne
2019-05-28 16:11 ` David Howells [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8581.1559059917@warthog.procyon.org.uk \
--to=dhowells@redhat.com \
--cc=gustavo@embeddedor.com \
--cc=linux-afs@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=marc.c.dionne@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox