From: Christian Brauner Date: Tue, 8 Dec 2020 17:51:48 +0000 (+0100) Subject: confile: cleanup clr_config_net_type() X-Git-Tag: lxc-5.0.0~330^2~92 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee52bb2f8d5a40cf224ac60deade30b8885a8ab3;p=thirdparty%2Flxc.git confile: cleanup clr_config_net_type() Signed-off-by: Christian Brauner --- diff --git a/src/lxc/confile.c b/src/lxc/confile.c index f376133e8..617f2e62b 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -5197,7 +5197,7 @@ static int clr_config_net_type(const char *key, struct lxc_conf *lxc_conf, struct lxc_netdev *netdev = data; if (!netdev) - return -1; + return ret_errno(EINVAL); netdev->type = -1;