aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorYOSHIFUJI Hideaki <yoshfuji@linux-ipv6.org>2008-07-20 01:36:07 -0400
committerDavid S. Miller <davem@davemloft.net>2008-07-20 01:36:07 -0400
commita6ffb404dc03f806a257faaab831a6cb55c0b790 (patch)
treed2d7de4af9dff7360e2737f36a4dd1cc37c983c9 /net
parent230b183921ecbaa5fedc0d35ad6ba7bb64b6e06a (diff)
ipv6 mcast: Omit redundant address family checks in ip6_mc_source().
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>
Diffstat (limited to 'net')
-rw-r--r--net/ipv6/mcast.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/net/ipv6/mcast.c b/net/ipv6/mcast.c
index 1b285371124a..e7c03bcc2788 100644
--- a/net/ipv6/mcast.c
+++ b/net/ipv6/mcast.c
@@ -367,10 +367,6 @@ int ip6_mc_source(int add, int omode, struct sock *sk,
367 int pmclocked = 0; 367 int pmclocked = 0;
368 int err; 368 int err;
369 369
370 if (pgsr->gsr_group.ss_family != AF_INET6 ||
371 pgsr->gsr_source.ss_family != AF_INET6)
372 return -EINVAL;
373
374 source = &((struct sockaddr_in6 *)&pgsr->gsr_source)->sin6_addr; 370 source = &((struct sockaddr_in6 *)&pgsr->gsr_source)->sin6_addr;
375 group = &((struct sockaddr_in6 *)&pgsr->gsr_group)->sin6_addr; 371 group = &((struct sockaddr_in6 *)&pgsr->gsr_group)->sin6_addr;
376 372