projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f7944fb
)
[NETLINK]: use container_of instead
author
Denis Cheng
<crquan@gmail.com>
Tue, 28 Aug 2007 22:41:11 +0000
(15:41 -0700)
committer
David S. Miller
<davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:48:35 +0000
(16:48 -0700)
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>
net/netlink/af_netlink.c
patch
|
blob
|
blame
|
history
diff --git
a/net/netlink/af_netlink.c
b/net/netlink/af_netlink.c
index 5681ce3aebca05f5fbfd4e5ba194f8cdd14fc3ba..a78d962e2c7073ccd1827c21f2a03750f4ee75e8 100644
(file)
--- a/
net/netlink/af_netlink.c
+++ b/
net/netlink/af_netlink.c
@@
-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 {