Commit 7180a031 authored by Alban Crequy's avatar Alban Crequy Committed by David S. Miller

af_unix: coding style: remove one level of indentation in unix_shutdown()

Signed-off-by: default avatarAlban Crequy <alban.crequy@collabora.co.uk>
Reviewed-by: default avatarIan Molton <ian.molton@collabora.co.uk>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b8970f0b
...@@ -1984,7 +1984,9 @@ static int unix_shutdown(struct socket *sock, int mode) ...@@ -1984,7 +1984,9 @@ static int unix_shutdown(struct socket *sock, int mode)
mode = (mode+1)&(RCV_SHUTDOWN|SEND_SHUTDOWN); mode = (mode+1)&(RCV_SHUTDOWN|SEND_SHUTDOWN);
if (mode) { if (!mode)
return 0;
unix_state_lock(sk); unix_state_lock(sk);
sk->sk_shutdown |= mode; sk->sk_shutdown |= mode;
other = unix_peer(sk); other = unix_peer(sk);
...@@ -2013,7 +2015,7 @@ static int unix_shutdown(struct socket *sock, int mode) ...@@ -2013,7 +2015,7 @@ static int unix_shutdown(struct socket *sock, int mode)
} }
if (other) if (other)
sock_put(other); sock_put(other);
}
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment