All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pierre Mariani <pierre.mariani@gmail.com>
To: Steve French <smfrench@gmail.com>
Cc: linux-cifs@vger.kernel.org
Subject: Re: [PATCH 1/4] smb: client: Delete unused value
Date: Sun, 26 Nov 2023 21:15:07 -0800	[thread overview]
Message-ID: <ZWQl2yN7iOpKegcJ@debian> (raw)
In-Reply-To: <CAH2r5mujUZgEiHJZgo-6Z6Xe3xykWMqUoTvQ8_ev__5-5RmO3w@mail.gmail.com>

On Sun, Nov 26, 2023 at 10:54:38PM -0600, Steve French wrote:
> on this one - I lean toward leaving it in (although technically
> unused) since may reduce future errors by being clear that this is not
> an error case and may be a bit clearer to read to some.  No strong
> opinion though on this.
> 

I will undo this change and update the Coverity triage data instead.

> On Sun, Nov 26, 2023 at 10:52 PM Pierre Mariani
> <pierre.mariani@gmail.com> wrote:
> >
> > rc does not need to be set to any value in this location as it gets set to other
> > values is all subsequent logical branches before being used.
> > Fixes Coverity 1562035 Unused value.
> >
> > Signed-off-by: Pierre Mariani <pierre.mariani@gmail.com>
> > ---
> >  fs/smb/client/connect.c | 1 -
> >  1 file changed, 1 deletion(-)
> >
> > diff --git a/fs/smb/client/connect.c b/fs/smb/client/connect.c
> > index f896f60c924b..449d56802692 100644
> > --- a/fs/smb/client/connect.c
> > +++ b/fs/smb/client/connect.c
> > @@ -1770,7 +1770,6 @@ cifs_get_tcp_session(struct smb3_fs_context *ctx,
> >                         tcp_ses, (struct sockaddr *)&ctx->dstaddr);
> >                 if (tcp_ses->smbd_conn) {
> >                         cifs_dbg(VFS, "RDMA transport established\n");
> > -                       rc = 0;
> >                         goto smbd_connected;
> >                 } else {
> >                         rc = -ENOENT;
> > --
> > 2.39.2
> >
> 
> 
> -- 
> Thanks,
> 
> Steve

  reply	other threads:[~2023-11-27  5:16 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-11-27  4:52 [PATCH 1/4] smb: client: Delete unused value Pierre Mariani
2023-11-27  4:52 ` [PATCH 2/4] smb: client: Protect ses->chans update with chan_lock spin lock Pierre Mariani
2023-11-29  9:00   ` Shyam Prasad N
2023-11-30  0:30     ` Pierre Mariani
2023-12-03  6:36       ` Pierre Mariani
2023-11-27  4:52 ` [PATCH 3/4] smb: client: Protect tcon->status with tc_lock " Pierre Mariani
2023-11-27  4:52 ` [PATCH 4/4] smb: client: Fix checkpatch whitespace errors and warnings Pierre Mariani
2023-12-02  2:28   ` Steve French
2023-11-27  4:54 ` [PATCH 1/4] smb: client: Delete unused value Steve French
2023-11-27  5:15   ` Pierre Mariani [this message]
2023-11-28  5:20     ` Pierre Mariani

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=ZWQl2yN7iOpKegcJ@debian \
    --to=pierre.mariani@gmail.com \
    --cc=linux-cifs@vger.kernel.org \
    --cc=smfrench@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.