Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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 {