From: Christian Brauner Date: Wed, 9 Dec 2020 08:46:55 +0000 (+0100) Subject: confile_utils: cleanup lxc_get_netdev_by_idx() X-Git-Tag: lxc-5.0.0~330^2~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a655c0d231ea7bce9e671aa72e59be9ef9adce7;p=thirdparty%2Flxc.git confile_utils: cleanup lxc_get_netdev_by_idx() Signed-off-by: Christian Brauner --- diff --git a/src/lxc/confile_utils.c b/src/lxc/confile_utils.c index a90658b07..531e2eaf8 100644 --- a/src/lxc/confile_utils.c +++ b/src/lxc/confile_utils.c @@ -214,7 +214,7 @@ struct lxc_netdev *lxc_get_netdev_by_idx(struct lxc_conf *conf, } if (!allocate) - return NULL; + return ret_set_errno(NULL, EINVAL); return lxc_network_add(insert, idx, true); }