From: Dan Carpenter Date: Wed, 10 Apr 2013 11:43:00 +0000 (+0300) Subject: cifs: small variable name cleanup X-Git-Tag: firefly_0821_release~3680^2~564^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b13ce4bbcae6181eb9cdda5a5bf88a28b0acd7aa;p=firefly-linux-kernel-4.4.55.git cifs: small variable name cleanup 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 Signed-off-by: Steve French Signed-off-by: Steve French --- diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 9535abe3d24c..99eeaa17ee00 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c @@ -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;