Skip to content

Commit 8559ad8

Browse files
zhengbin13smfrench
authored andcommitted
fs/cifs/sess.c: Remove set but not used variable 'capabilities'
Fixes gcc '-Wunused-but-set-variable' warning: fs/cifs/sess.c: In function sess_auth_lanman: fs/cifs/sess.c:910:8: warning: variable capabilities set but not used [-Wunused-but-set-variable] Reported-by: Hulk Robot <[email protected]> Signed-off-by: zhengbin <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent 388962e commit 8559ad8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

fs/cifs/sess.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -698,7 +698,6 @@ sess_auth_lanman(struct sess_data *sess_data)
698698
char *bcc_ptr;
699699
struct cifs_ses *ses = sess_data->ses;
700700
char lnm_session_key[CIFS_AUTH_RESP_SIZE];
701-
__u32 capabilities;
702701
__u16 bytes_remaining;
703702

704703
/* lanman 2 style sessionsetup */
@@ -709,7 +708,7 @@ sess_auth_lanman(struct sess_data *sess_data)
709708

710709
pSMB = (SESSION_SETUP_ANDX *)sess_data->iov[0].iov_base;
711710
bcc_ptr = sess_data->iov[2].iov_base;
712-
capabilities = cifs_ssetup_hdr(ses, pSMB);
711+
(void)cifs_ssetup_hdr(ses, pSMB);
713712

714713
pSMB->req.hdr.Flags2 &= ~SMBFLG2_UNICODE;
715714

0 commit comments

Comments
 (0)