All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] cifs: remove initialization value
@ 2022-10-04  6:23 Muhammad Usama Anjum
  2022-10-04  6:23 ` [PATCH 2/2] cifs: check returned value for error Muhammad Usama Anjum
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Muhammad Usama Anjum @ 2022-10-04  6:23 UTC (permalink / raw)
  To: Steve French, Paulo Alcantara, Ronnie Sahlberg, Shyam Prasad N,
	Tom Talpey
  Cc: Muhammad Usama Anjum, kernel, kernel-janitors, linux-cifs,
	samba-technical, linux-kernel

Don't initialize the rc as its value is being overwritten before its
use.

Signed-off-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
---
 fs/cifs/smb2pdu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/cifs/smb2pdu.c b/fs/cifs/smb2pdu.c
index 0600f0a07628..2bf43c892ae6 100644
--- a/fs/cifs/smb2pdu.c
+++ b/fs/cifs/smb2pdu.c
@@ -879,7 +879,7 @@ SMB2_negotiate(const unsigned int xid,
 	struct smb2_negotiate_rsp *rsp;
 	struct kvec iov[1];
 	struct kvec rsp_iov;
-	int rc = 0;
+	int rc;
 	int resp_buftype;
 	int blob_offset, blob_length;
 	char *security_blob;
-- 
2.30.2


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

end of thread, other threads:[~2022-10-07 19:25 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-04  6:23 [PATCH 1/2] cifs: remove initialization value Muhammad Usama Anjum
2022-10-04  6:23 ` [PATCH 2/2] cifs: check returned value for error Muhammad Usama Anjum
2022-10-04 19:01   ` Paulo Alcantara
2022-10-05  5:17     ` Muhammad Usama Anjum
2022-10-04 14:23 ` [PATCH 1/2] cifs: remove initialization value Enzo Matsumiya
2022-10-05 14:13   ` David Laight
2022-10-07 19:22     ` 'Enzo Matsumiya'
2022-10-05 14:58   ` Dan Carpenter
2022-10-04 18:59 ` Paulo Alcantara
2022-10-05  7:05   ` Steve French

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.