Linux CIFS filesystem development
 help / color / mirror / Atom feed
* [PATCH 1/4] smb: client: Delete unused value
@ 2023-11-27  4:52 Pierre Mariani
  2023-11-27  4:52 ` [PATCH 2/4] smb: client: Protect ses->chans update with chan_lock spin lock Pierre Mariani
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Pierre Mariani @ 2023-11-27  4:52 UTC (permalink / raw)
  To: linux-cifs; +Cc: smfrench, pierre.mariani

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


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2023-12-03  6:36 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2023-11-28  5:20     ` Pierre Mariani

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox