From: Christian Brauner Date: Tue, 8 Dec 2020 17:54:34 +0000 (+0100) Subject: confile: cleanup clr_config_net_veth_pair() X-Git-Tag: lxc-5.0.0~330^2~83 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a69a835e967bdd3abc4446006c2007df7f5c95d2;p=thirdparty%2Flxc.git confile: cleanup clr_config_net_veth_pair() Signed-off-by: Christian Brauner --- diff --git a/src/lxc/confile.c b/src/lxc/confile.c index 234a99252..580760686 100644 --- a/src/lxc/confile.c +++ b/src/lxc/confile.c @@ -5326,7 +5326,7 @@ static int clr_config_net_veth_pair(const char *key, struct lxc_conf *lxc_conf, struct lxc_netdev *netdev = data; if (!netdev) - return -1; + return ret_errno(EINVAL); netdev->priv.veth_attr.pair[0] = '\0';