confile: cleanup clr_config_net_veth_ipv6_route()

parent 2b592308
...@@ -5511,13 +5511,13 @@ static int clr_config_net_ipv6_address(const char *key, ...@@ -5511,13 +5511,13 @@ static int clr_config_net_ipv6_address(const char *key,
} }
static int clr_config_net_veth_ipv6_route(const char *key, static int clr_config_net_veth_ipv6_route(const char *key,
struct lxc_conf *lxc_conf, void *data) struct lxc_conf *lxc_conf, void *data)
{ {
struct lxc_netdev *netdev = data; struct lxc_netdev *netdev = data;
struct lxc_list *cur, *next; struct lxc_list *cur, *next;
if (!netdev) if (!netdev)
return -1; return ret_errno(EINVAL);
lxc_list_for_each_safe(cur, &netdev->priv.veth_attr.ipv6_routes, next) { lxc_list_for_each_safe(cur, &netdev->priv.veth_attr.ipv6_routes, next) {
lxc_list_del(cur); lxc_list_del(cur);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment