diff options
author | Denis Cheng <crquan@gmail.com> | 2007-08-28 18:41:11 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 19:48:35 -0400 |
commit | 32b21e034be9954eaae0278df20e0251eb958ded (patch) | |
tree | 3a0e55f59fae96505b908b1e65a2df42e9377c41 /net/netlink | |
parent | f7944fb1913130ae7858008af96e52a3a6b04118 (diff) |
[NETLINK]: use container_of instead
This could make future redesign of struct netlink_sock easier.
Signed-off-by: Denis Cheng <crquan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/netlink')
-rw-r--r-- | net/netlink/af_netlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c index 5681ce3aebc..a78d962e2c7 100644 --- a/net/netlink/af_netlink.c +++ b/net/netlink/af_netlink.c | |||
@@ -88,7 +88,7 @@ struct netlink_sock { | |||
88 | 88 | ||
89 | static inline struct netlink_sock *nlk_sk(struct sock *sk) | 89 | static inline struct netlink_sock *nlk_sk(struct sock *sk) |
90 | { | 90 | { |
91 | return (struct netlink_sock *)sk; | 91 | return container_of(sk, struct netlink_sock, sk); |
92 | } | 92 | } |
93 | 93 | ||
94 | struct nl_pid_hash { | 94 | struct nl_pid_hash { |