mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 10:40:08 +01:00
core: let callers do error logging for nm_netlink_route_add()
Callers of this function have a better idea of they want to log errors or not. Let them handle it, since they already do, and having a warning here was causing duplicate log messages.
This commit is contained in:
parent
aed37465be
commit
c4758ef30e
1 changed files with 1 additions and 6 deletions
|
|
@ -170,7 +170,7 @@ nm_netlink_route_new (int ifindex,
|
|||
*
|
||||
* Returns: zero if succeeded or the netlink error otherwise.
|
||||
**/
|
||||
int nm_netlink_route_add(struct rtnl_route * route,
|
||||
int nm_netlink_route_add (struct rtnl_route * route,
|
||||
int family,
|
||||
const void * dest, /* in_addr or in6_addr */
|
||||
int dest_prefix,
|
||||
|
|
@ -236,11 +236,6 @@ int nm_netlink_route_add(struct rtnl_route * route,
|
|||
if (err == -NLE_FAILURE)
|
||||
err = -NLE_OBJ_NOTFOUND;
|
||||
|
||||
if (err)
|
||||
nm_log_warn (LOGD_DEVICE | log,
|
||||
"Failed to add route %s",
|
||||
nl_geterror(err));
|
||||
|
||||
return err;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue