cifs: small variable name cleanup
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 10 Apr 2013 11:43:00 +0000 (14:43 +0300)
committerSteve French <smfrench@gmail.com>
Sun, 5 May 2013 03:18:10 +0000 (22:18 -0500)
server and ses->server are the same, but it's a little bit ugly that we
lock &ses->server->srv_mutex and unlock &server->srv_mutex.  It causes
a false positive in Smatch about inconsistent locking.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/connect.c

index 9535abe3d24ce24d1facb2f5bb6437f67894b01c..99eeaa17ee006956d37350cad00bfd854c8b5306 100644 (file)
@@ -3836,7 +3836,7 @@ cifs_setup_session(const unsigned int xid, struct cifs_ses *ses,
        if (rc) {
                cifs_dbg(VFS, "Send error in SessSetup = %d\n", rc);
        } else {
-               mutex_lock(&ses->server->srv_mutex);
+               mutex_lock(&server->srv_mutex);
                if (!server->session_estab) {
                        server->session_key.response = ses->auth_key.response;
                        server->session_key.len = ses->auth_key.len;