From: Christian Brauner Date: Tue, 8 Dec 2020 17:52:08 +0000 (+0100) Subject: confile: cleanup clr_config_net_name() X-Git-Tag: lxc-5.0.0~330^2~91 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24a28704144bf3b0237326e5106bdd46132316a5;p=thirdparty%2Flxc.git confile: cleanup clr_config_net_name() Signed-off-by: Christian Brauner --- diff --git a/src/lxc/confile.c b/src/lxc/confile.c index 617f2e62b..9856ee9b8 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -5210,7 +5210,7 @@ static int clr_config_net_name(const char *key, struct lxc_conf *lxc_conf, struct lxc_netdev *netdev = data; if (!netdev) - return -1; + return ret_errno(EINVAL); netdev->name[0] = '\0';