Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=32b21e034be9954eaae0278df20e0251eb958ded
Commit:     32b21e034be9954eaae0278df20e0251eb958ded
Parent:     f7944fb1913130ae7858008af96e52a3a6b04118
Author:     Denis Cheng <[EMAIL PROTECTED]>
AuthorDate: Tue Aug 28 15:41:11 2007 -0700
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Wed Oct 10 16:48:35 2007 -0700

    [NETLINK]: use container_of instead
    
    This could make future redesign of struct netlink_sock easier.
    
    Signed-off-by: Denis Cheng <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
---
 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 5681ce3..a78d962 100644
--- 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 {
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to