diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2019-10-25 13:35:08 +0300 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2019-11-25 01:14:14 -0600 |
commit | 8bd3754cff3aa6e80e73cb56042cdc6f76d6510e (patch) | |
tree | 3dda8fba9bbae1600bf17d78198b1537d784977c /fs/cifs/transport.c | |
parent | 219d54332a09e8d8741c1e1982f5eae56099de85 (diff) | |
download | linux-8bd3754cff3aa6e80e73cb56042cdc6f76d6510e.tar.bz2 |
cifs: rename a variable in SendReceive()
Smatch gets confused because we sometimes refer to "server->srv_mutex" and
sometimes to "sess->server->srv_mutex". They refer to the same lock so
let's just make this consistent.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/transport.c')
-rw-r--r-- | fs/cifs/transport.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/transport.c b/fs/cifs/transport.c index ca3de62688d6..f27842fb9f75 100644 --- a/fs/cifs/transport.c +++ b/fs/cifs/transport.c @@ -1287,7 +1287,7 @@ SendReceive(const unsigned int xid, struct cifs_ses *ses, rc = allocate_mid(ses, in_buf, &midQ); if (rc) { - mutex_unlock(&ses->server->srv_mutex); + mutex_unlock(&server->srv_mutex); /* Update # of requests on wire to server */ add_credits(server, &credits, 0); return rc; |