mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-11-20 08:38:24 +08:00
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>
This commit is contained in:
parent
230b183921
commit
a6ffb404dc
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user