net: if: Skip error print for already joined mcast group
No need to print error if we have already joined a pre-defined multicast group. Change-Id: I1237d5fbf0b63267ccb00432522513358c48d31d Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
parent
011392dafd
commit
a060553666
1 changed files with 2 additions and 2 deletions
|
@ -336,7 +336,7 @@ static void join_mcast_allnodes(struct net_if *iface)
|
|||
net_ipv6_addr_create_ll_allnodes_mcast(&addr);
|
||||
|
||||
ret = net_ipv6_mld_join(iface, &addr);
|
||||
if (ret < 0) {
|
||||
if (ret < 0 && ret != -EALREADY) {
|
||||
NET_ERR("Cannot join all nodes address %s (%d)",
|
||||
net_sprint_ipv6_addr(&addr), ret);
|
||||
}
|
||||
|
@ -352,7 +352,7 @@ static void join_mcast_solicit_node(struct net_if *iface,
|
|||
net_ipv6_addr_create_solicited_node(my_addr, &addr);
|
||||
|
||||
ret = net_ipv6_mld_join(iface, &addr);
|
||||
if (ret < 0) {
|
||||
if (ret < 0 && ret != -EALREADY) {
|
||||
NET_ERR("Cannot join solicit node address %s (%d)",
|
||||
net_sprint_ipv6_addr(&addr), ret);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue