]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ipv6 mcast: Omit redundant address family checks in ip6_mc_source().
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Sun, 20 Jul 2008 05:36:07 +0000 (22:36 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 20 Jul 2008 05:36:07 +0000 (22:36 -0700)
The caller has alredy checked for them.

Signed-off-by: YOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv6/mcast.c

index 1b285371124af170064a6724f4131a7af4a798ff..e7c03bcc2788cd0a7c338520a79509eff215c24d 100644 (file)
@@ -367,10 +367,6 @@ int ip6_mc_source(int add, int omode, struct sock *sk,
        int pmclocked = 0;
        int err;
 
-       if (pgsr->gsr_group.ss_family != AF_INET6 ||
-           pgsr->gsr_source.ss_family != AF_INET6)
-               return -EINVAL;
-
        source = &((struct sockaddr_in6 *)&pgsr->gsr_source)->sin6_addr;
        group = &((struct sockaddr_in6 *)&pgsr->gsr_group)->sin6_addr;