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 <>
Signed-off-by: default avatarDavid S. Miller <>
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 {
Supports Markdown
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