Commit 32b21e03 authored by Denis Cheng's avatar Denis Cheng Committed by David S. Miller
Browse files

[NETLINK]: use container_of instead



This could make future redesign of struct netlink_sock easier.
Signed-off-by: default avatarDenis Cheng <crquan@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 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% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment