Skip to content

Commit c13e7af

Browse files
Menglong Dongsmfrench
authored andcommitted
fs: cifs: remove unneeded variable in smb3_fs_context_dup
'rc' in smb3_fs_context_dup is not used and can be removed. Signed-off-by: Menglong Dong <dong.menglong@zte.com.cn> Reviewed-by: Aurelien Aptel <aaptel@suse.com> Signed-off-by: Steve French <stfrench@microsoft.com>
1 parent 2659d3b commit c13e7af

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

fs/cifs/fs_context.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -303,8 +303,6 @@ do { \
303303
int
304304
smb3_fs_context_dup(struct smb3_fs_context *new_ctx, struct smb3_fs_context *ctx)
305305
{
306-
int rc = 0;
307-
308306
memcpy(new_ctx, ctx, sizeof(*ctx));
309307
new_ctx->prepath = NULL;
310308
new_ctx->mount_options = NULL;
@@ -327,7 +325,7 @@ smb3_fs_context_dup(struct smb3_fs_context *new_ctx, struct smb3_fs_context *ctx
327325
DUP_CTX_STR(nodename);
328326
DUP_CTX_STR(iocharset);
329327

330-
return rc;
328+
return 0;
331329
}
332330

333331
static int

0 commit comments

Comments
 (0)