From: YOSHIFUJI Hideaki Date: Wed, 4 Jan 2006 21:56:31 +0000 (-0800) Subject: [IPV6]: Use macro for rwlock_t initialization. X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=196433c5b788eb732fdcf92449274e302f089ce4;p=openwrt%2Fstaging%2Fblogic.git [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 f829a4ad3ccc..1cf305a9f8dd 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; /*