From: Christian Brauner Date: Tue, 8 Dec 2020 17:57:42 +0000 (+0100) Subject: confile: cleanup clr_config_net_veth_ipv4_route() X-Git-Tag: lxc-5.0.0~330^2~75 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6340f28f36f266ac91956ddbc7eb00988ee7c8be;p=thirdparty%2Flxc.git confile: cleanup clr_config_net_veth_ipv4_route() Signed-off-by: Christian Brauner --- diff --git a/src/lxc/confile.c b/src/lxc/confile.c index 197dbeca3..c95d71a07 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -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);