Skip to content

Commit 6a87266

Browse files
committed
smb3: remove two unused variables
Fix two unused variables in commit "add support for stat of WSL reparse points for special file types" Reported-by: kernel test robot <lkp@intel.com> Signed-off-by: Steve French <stfrench@microsoft.com>
1 parent 2e4564b commit 6a87266

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

fs/cifs/smb2ops.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3044,7 +3044,6 @@ smb2_query_reparse_tag(const unsigned int xid, struct cifs_tcon *tcon,
30443044
__u8 oplock = SMB2_OPLOCK_LEVEL_NONE;
30453045
struct cifs_open_parms oparms;
30463046
struct cifs_fid fid;
3047-
struct kvec err_iov = {NULL, 0};
30483047
struct TCP_Server_Info *server = cifs_pick_channel(tcon->ses);
30493048
int flags = 0;
30503049
struct smb_rqst rqst[3];
@@ -3053,7 +3052,6 @@ smb2_query_reparse_tag(const unsigned int xid, struct cifs_tcon *tcon,
30533052
struct kvec open_iov[SMB2_CREATE_IOV_SIZE];
30543053
struct kvec io_iov[SMB2_IOCTL_IOV_SIZE];
30553054
struct kvec close_iov[1];
3056-
struct smb2_create_rsp *create_rsp;
30573055
struct smb2_ioctl_rsp *ioctl_rsp;
30583056
struct reparse_data_buffer *reparse_buf;
30593057
u32 plen;
@@ -3129,9 +3127,6 @@ smb2_query_reparse_tag(const unsigned int xid, struct cifs_tcon *tcon,
31293127
flags, 3, rqst,
31303128
resp_buftype, rsp_iov);
31313129

3132-
create_rsp = rsp_iov[0].iov_base;
3133-
if (create_rsp && create_rsp->sync_hdr.Status)
3134-
err_iov = rsp_iov[0];
31353130
ioctl_rsp = rsp_iov[1].iov_base;
31363131

31373132
/*

0 commit comments

Comments
 (0)