diff options
author | Jeff Layton <jlayton@redhat.com> | 2013-05-26 13:00:56 +0200 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2013-06-24 08:56:40 +0200 |
commit | 281e2e7d06c42ce8dfd423fa2ae5616af0e0323f (patch) | |
tree | 78fdcb02c458429c3cc0260ffaba5e852057a332 /fs/cifs/sess.c | |
parent | cifs: throw a warning if negotiate or sess_setup ops are passed NULL server o... (diff) | |
download | linux-281e2e7d06c42ce8dfd423fa2ae5616af0e0323f.tar.xz linux-281e2e7d06c42ce8dfd423fa2ae5616af0e0323f.zip |
cifs: remove the cifs_ses->flags field
This field is completely unused:
CIFS_SES_W9X is completely unused. CIFS_SES_LANMAN and CIFS_SES_OS2
are set but never checked. CIFS_SES_NT4 is checked, but never set.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Acked-by: Pavel Shilovsky <piastry@etersoft.ru>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/sess.c')
-rw-r--r-- | fs/cifs/sess.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/fs/cifs/sess.c b/fs/cifs/sess.c index e8c5dc9f3386..0d0fe38f66a2 100644 --- a/fs/cifs/sess.c +++ b/fs/cifs/sess.c @@ -328,10 +328,8 @@ static void decode_ascii_ssetup(char **pbcc_area, __u16 bleft, ses->serverOS = kzalloc(len + 1, GFP_KERNEL); if (ses->serverOS) strncpy(ses->serverOS, bcc_ptr, len); - if (strncmp(ses->serverOS, "OS/2", 4) == 0) { + if (strncmp(ses->serverOS, "OS/2", 4) == 0) cifs_dbg(FYI, "OS/2 server\n"); - ses->flags |= CIFS_SES_OS2; - } bcc_ptr += len + 1; bleft -= len + 1; @@ -642,8 +640,6 @@ ssetup_ntlmssp_authenticate: } bcc_ptr = str_area; - ses->flags &= ~CIFS_SES_LANMAN; - iov[1].iov_base = NULL; iov[1].iov_len = 0; @@ -667,7 +663,6 @@ ssetup_ntlmssp_authenticate: ses->server->sec_mode & SECMODE_PW_ENCRYPT ? true : false, lnm_session_key); - ses->flags |= CIFS_SES_LANMAN; memcpy(bcc_ptr, (char *)lnm_session_key, CIFS_AUTH_RESP_SIZE); bcc_ptr += CIFS_AUTH_RESP_SIZE; |