projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
230b183
)
ipv6 mcast: Omit redundant address family checks in ip6_mc_source().
author
YOSHIFUJI Hideaki
<yoshfuji@linux-ipv6.org>
Sun, 20 Jul 2008 05:36:07 +0000
(22:36 -0700)
committer
David 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
patch
|
blob
|
blame
|
history
diff --git
a/net/ipv6/mcast.c
b/net/ipv6/mcast.c
index 1b285371124af170064a6724f4131a7af4a798ff..e7c03bcc2788cd0a7c338520a79509eff215c24d 100644
(file)
--- 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,
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;