mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 00:21:17 +00:00
af_unix: coding style: remove one level of indentation in unix_shutdown()
Signed-off-by: Alban Crequy <alban.crequy@collabora.co.uk> Reviewed-by: Ian Molton <ian.molton@collabora.co.uk> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
b8970f0bfc
commit
7180a03118
1 changed files with 28 additions and 26 deletions
|
@ -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)
|
||||||
}
|
}
|
||||||
if (other)
|
if (other)
|
||||||
sock_put(other);
|
sock_put(other);
|
||||||
}
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue