From: Christian Brauner Date: Tue, 8 Dec 2020 17:58:50 +0000 (+0100) Subject: confile: cleanup clr_config_net_veth_ipv6_route() X-Git-Tag: lxc-5.0.0~330^2~72 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b67488ec7c701da9e78a29d7bc47a6df82ffd40b;p=thirdparty%2Flxc.git confile: cleanup clr_config_net_veth_ipv6_route() Signed-off-by: Christian Brauner --- diff --git a/src/lxc/confile.c b/src/lxc/confile.c index 487e59f23..5f6f18d5c 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -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, - 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.ipv6_routes, next) { lxc_list_del(cur);