From: Christian Brauner Date: Wed, 9 Dec 2020 08:52:24 +0000 (+0100) Subject: confile_utils: cleanup lxc_veth_flag_to_mode() X-Git-Tag: lxc-5.0.0~330^2~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=97ea2c2dc9326c6a278755d708e2d7278efd06fd;p=thirdparty%2Flxc.git confile_utils: cleanup lxc_veth_flag_to_mode() Signed-off-by: Christian Brauner --- diff --git a/src/lxc/confile_utils.c b/src/lxc/confile_utils.c index df1447efe..31ee22026 100644 --- a/src/lxc/confile_utils.c +++ b/src/lxc/confile_utils.c @@ -517,7 +517,7 @@ char *lxc_veth_flag_to_mode(int mode) return veth_mode[i].name; } - return NULL; + return ret_set_errno(NULL, EINVAL); } static struct lxc_macvlan_mode {