mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
bridge: remove redundant check on err in br_multicast_ipv4_rcv
br_ip4_multicast_mrd_rcv only return 0 and -ENOMSG, no other negative value Signed-off-by: Li RongQing <[email protected]> Acked-by: Roopa Prabhu <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
a2b5a3fa2c
commit
08e71623c8
1 changed files with 1 additions and 6 deletions
|
|
@ -1615,12 +1615,7 @@ static int br_multicast_ipv4_rcv(struct net_bridge *br,
|
|||
if (ip_hdr(skb)->protocol == IPPROTO_PIM)
|
||||
br_multicast_pim(br, port, skb);
|
||||
} else if (ipv4_is_all_snoopers(ip_hdr(skb)->daddr)) {
|
||||
err = br_ip4_multicast_mrd_rcv(br, port, skb);
|
||||
|
||||
if (err < 0 && err != -ENOMSG) {
|
||||
br_multicast_err_count(br, port, skb->protocol);
|
||||
return err;
|
||||
}
|
||||
br_ip4_multicast_mrd_rcv(br, port, skb);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
|
|
|||
Loading…
Reference in a new issue