]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
conf: fix coding style
authorChristian Brauner <christian.brauner@ubuntu.com>
Mon, 18 Oct 2021 09:46:16 +0000 (11:46 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 18 Oct 2021 09:46:16 +0000 (11:46 +0200)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/conf.c

index db6c0434a59b3153fd9c23c89f08e308bfb7e105..bbce6404996917b2a1b6ac218a3413c1afe4b5f7 100644 (file)
@@ -579,9 +579,8 @@ int lxc_rootfs_init(struct lxc_conf *conf, bool userns)
                         PROTECT_LOOKUP_BENEATH,
                         S_IWUSR | S_IRUSR);
        if (fd_pin < 0) {
-               if (errno == EROFS) {
+               if (errno == EROFS)
                        return log_trace_errno(0, EROFS, "Not pinning on read-only filesystem");
-               }
                return syserror("Failed to pin rootfs");
        }