提交 32b21e03 编写于 作者: D Denis Cheng 提交者: David S. Miller

[NETLINK]: use container_of instead

This could make future redesign of struct netlink_sock easier.
Signed-off-by: NDenis Cheng <crquan@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 f7944fb1
......@@ -88,7 +88,7 @@ struct netlink_sock {
static inline struct netlink_sock *nlk_sk(struct sock *sk)
{
return (struct netlink_sock *)sk;
return container_of(sk, struct netlink_sock, sk);
}
struct nl_pid_hash {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册