From: YOSHIFUJI Hideaki Date: Wed, 4 Jan 2006 21:56:31 +0000 (-0800) Subject: [IPV6]: Use macro for rwlock_t initialization. X-Git-Tag: v2.6.16-rc1~474^2~22^2~9^2~3 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=196433c5b788eb732fdcf92449274e302f089ce4;p=linux-2.6 [IPV6]: Use macro for rwlock_t initialization. Signed-off-by: YOSHIFUJI Hideaki Signed-off-by: David S. Miller --- diff --git a/net/ipv6/mcast.c b/net/ipv6/mcast.c index f829a4ad3c..1cf305a9f8 100644 --- a/net/ipv6/mcast.c +++ b/net/ipv6/mcast.c @@ -224,7 +224,7 @@ int ipv6_sock_mc_join(struct sock *sk, int ifindex, struct in6_addr *addr) mc_lst->ifindex = dev->ifindex; mc_lst->sfmode = MCAST_EXCLUDE; - mc_lst->sflock = RW_LOCK_UNLOCKED; + rwlock_init(&mc_lst->sflock); mc_lst->sflist = NULL; /*