Skip to content

Commit

Permalink
confile: cleanup clr_config_net_veth_ipv4_route()
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Dec 9, 2020
1 parent 54148d6 commit 6340f28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lxc/confile.c
Expand Up @@ -5462,13 +5462,13 @@ static int clr_config_net_ipv4_address(const char *key,
}

static int clr_config_net_veth_ipv4_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_list *cur, *next;

if (!netdev)
return -1;
return ret_errno(EINVAL);

lxc_list_for_each_safe(cur, &netdev->priv.veth_attr.ipv4_routes, next) {
lxc_list_del(cur);
Expand Down

0 comments on commit 6340f28

Please sign in to comment.