diff mbox series

fs: cifs: remove unneeded variable in smb3_fs_context_dup

Message ID 20210112091340.7500-1-dong.menglong@zte.com.cn (mailing list archive)
State New, archived
Headers show
Series fs: cifs: remove unneeded variable in smb3_fs_context_dup | expand

Commit Message

Menglong Dong Jan. 12, 2021, 9:13 a.m. UTC
From: Menglong Dong <dong.menglong@zte.com.cn>

'rc' in smb3_fs_context_dup is not used and can be removed.

Signed-off-by: Menglong Dong <dong.menglong@zte.com.cn>
---
 fs/cifs/fs_context.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

Comments

Aurélien Aptel Jan. 12, 2021, 1:02 p.m. UTC | #1
Reviewed-by: Aurelien Aptel <aaptel@suse.com>

Thanks,
diff mbox series

Patch

diff --git a/fs/cifs/fs_context.c b/fs/cifs/fs_context.c
index 0afccbbed2e6..076bcadc756a 100644
--- a/fs/cifs/fs_context.c
+++ b/fs/cifs/fs_context.c
@@ -303,8 +303,6 @@  do {									\
 int
 smb3_fs_context_dup(struct smb3_fs_context *new_ctx, struct smb3_fs_context *ctx)
 {
-	int rc = 0;
-
 	memcpy(new_ctx, ctx, sizeof(*ctx));
 	new_ctx->prepath = NULL;
 	new_ctx->mount_options = NULL;
@@ -327,7 +325,7 @@  smb3_fs_context_dup(struct smb3_fs_context *new_ctx, struct smb3_fs_context *ctx
 	DUP_CTX_STR(nodename);
 	DUP_CTX_STR(iocharset);
 
-	return rc;
+	return 0;
 }
 
 static int