mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-10 07:50:04 +00:00
cifs: Re-indent cifs_swn_reconnect()
This code is slightly nicer if we flip the cifs_sockaddr_equal() around and pull all the code in one tab. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Samuel Cabrero <scabrero@suse.de> Signed-off-by: Steve French <stfrench@microsoft.com>
This commit is contained in:
parent
eedf8e88e5
commit
0f2c66ae5c
@ -484,7 +484,9 @@ static int cifs_swn_reconnect(struct cifs_tcon *tcon, struct sockaddr_storage *a
|
||||
|
||||
/* Store the reconnect address */
|
||||
mutex_lock(&tcon->ses->server->srv_mutex);
|
||||
if (!cifs_sockaddr_equal(&tcon->ses->server->dstaddr, addr)) {
|
||||
if (cifs_sockaddr_equal(&tcon->ses->server->dstaddr, addr))
|
||||
goto unlock;
|
||||
|
||||
ret = cifs_swn_store_swn_addr(addr, &tcon->ses->server->dstaddr,
|
||||
&tcon->ses->server->swn_dstaddr);
|
||||
if (ret < 0) {
|
||||
@ -518,7 +520,7 @@ static int cifs_swn_reconnect(struct cifs_tcon *tcon, struct sockaddr_storage *a
|
||||
if (tcon->ses->server->tcpStatus != CifsExiting)
|
||||
tcon->ses->server->tcpStatus = CifsNeedReconnect;
|
||||
spin_unlock(&GlobalMid_Lock);
|
||||
}
|
||||
|
||||
unlock:
|
||||
mutex_unlock(&tcon->ses->server->srv_mutex);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user