]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
confile: cleanup clr_config_seccomp_allow_nesting()
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 8 Dec 2020 16:25:31 +0000 (17:25 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 8 Dec 2020 17:44:12 +0000 (18:44 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/confile.c

index 355e97c147a6198ff6b7bf6b4a5be862f64dd5ec..80a0916e0bb76efb43cbe1c2647eb384eac4fbe4 100644 (file)
@@ -4805,8 +4805,7 @@ static inline int clr_config_seccomp_allow_nesting(const char *key,
        c->seccomp.allow_nesting = 0;
        return 0;
 #else
-       errno = ENOSYS;
-       return -1;
+       return ret_errno(ENOSYS);
 #endif
 }