aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/team
diff options
context:
space:
mode:
authorJiri Pirko <jiri@resnulli.us>2012-08-22 23:26:51 -0400
committerDavid S. Miller <davem@davemloft.net>2012-08-24 13:46:39 -0400
commit0c7517e9faa2f79afe95b47321f3cd08fe0145cd (patch)
treeb2f869d36a3ae6e6d303220a4f71b4d8d04a58c5 /drivers/net/team
parent1f7c9ae7a014d994c01a7dd59333f2fcef2aba58 (diff)
team: don't print warn message on -ESRCH during event send
When no one is listening on NL socket, -ESRCH is returned and warning message is printed. This message is confusing people and in fact has no meaning. So do not print it in this case. Reported-by: Or Gerlitz <ogerlitz@mellanox.com> Signed-off-by: Jiri Pirko <jiri@resnulli.us> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/team')
-rw-r--r--drivers/net/team/team.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/team/team.c b/drivers/net/team/team.c
index c8a3f108dc94..a5926c8584aa 100644
--- a/drivers/net/team/team.c
+++ b/drivers/net/team/team.c
@@ -2486,7 +2486,7 @@ static void __team_options_change_check(struct team *team)
2486 list_add_tail(&opt_inst->tmp_list, &sel_opt_inst_list); 2486 list_add_tail(&opt_inst->tmp_list, &sel_opt_inst_list);
2487 } 2487 }
2488 err = team_nl_send_event_options_get(team, &sel_opt_inst_list); 2488 err = team_nl_send_event_options_get(team, &sel_opt_inst_list);
2489 if (err) 2489 if (err && err != -ESRCH)
2490 netdev_warn(team->dev, "Failed to send options change via netlink (err %d)\n", 2490 netdev_warn(team->dev, "Failed to send options change via netlink (err %d)\n",
2491 err); 2491 err);
2492} 2492}
@@ -2517,9 +2517,9 @@ static void __team_port_change_check(struct team_port *port, bool linkup)
2517 2517
2518send_event: 2518send_event:
2519 err = team_nl_send_event_port_list_get(port->team); 2519 err = team_nl_send_event_port_list_get(port->team);
2520 if (err) 2520 if (err && err != -ESRCH)
2521 netdev_warn(port->team->dev, "Failed to send port change of device %s via netlink\n", 2521 netdev_warn(port->team->dev, "Failed to send port change of device %s via netlink (err %d)\n",
2522 port->dev->name); 2522 port->dev->name, err);
2523 2523
2524} 2524}
2525 2525