From: Christian Brauner Date: Tue, 8 Dec 2020 17:57:09 +0000 (+0100) Subject: confile: cleanup clr_config_net_ipv4_address() X-Git-Tag: lxc-5.0.0~330^2~76 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=54148d6999c6ce120e47e0e9b03b52fdf4a148bf;p=thirdparty%2Flxc.git confile: cleanup clr_config_net_ipv4_address() Signed-off-by: Christian Brauner --- diff --git a/src/lxc/confile.c b/src/lxc/confile.c index c0f3ca021..197dbeca3 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -5450,7 +5450,7 @@ static int clr_config_net_ipv4_address(const char *key, struct lxc_list *cur, *next; if (!netdev) - return -1; + return ret_errno(EINVAL); lxc_list_for_each_safe(cur, &netdev->ipv4, next) { lxc_list_del(cur);