]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc init: remove dead code
authorC0deAi <benjamin.bales@assrc.us>
Fri, 6 Apr 2018 15:30:06 +0000 (11:30 -0400)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 9 Apr 2018 18:40:02 +0000 (20:40 +0200)
Value stored is never read.

Closes #2262.

Signed-off-by: C0deAi <techsupport@mycode.ai>
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/cmd/lxc_init.c

index a0dabb66a720daa35e6e294a5089a6ef220d4c4a..9168c7878c61e41f804ef9417e79de0bd2ed351d 100644 (file)
@@ -150,7 +150,6 @@ static void prevent_forking(void)
                        SYSERROR("Failed to write to \"%s\"", path);
 
                close(fd);
-               fd = -1;
                break;
        }