From 2a655c0d231ea7bce9e671aa72e59be9ef9adce7 Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Wed, 9 Dec 2020 09:46:55 +0100 Subject: [PATCH] confile_utils: cleanup lxc_get_netdev_by_idx() Signed-off-by: Christian Brauner --- src/lxc/confile_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.47.2