提交 7180a031 编写于 作者: A Alban Crequy 提交者: David S. Miller

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

Signed-off-by: NAlban Crequy <alban.crequy@collabora.co.uk>
Reviewed-by: NIan Molton <ian.molton@collabora.co.uk>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 b8970f0b
......@@ -1984,7 +1984,9 @@ static int unix_shutdown(struct socket *sock, int mode)
mode = (mode+1)&(RCV_SHUTDOWN|SEND_SHUTDOWN);
if (mode) {
if (!mode)
return 0;
unix_state_lock(sk);
sk->sk_shutdown |= mode;
other = unix_peer(sk);
......@@ -2013,7 +2015,7 @@ static int unix_shutdown(struct socket *sock, int mode)
}
if (other)
sock_put(other);
}
return 0;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册