Skip to content

Commit

Permalink
utils: lxc_popen() remove dead assignments
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner authored and stgraber committed Oct 4, 2017
1 parent c8ee00f commit a43c220
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/lxc/utils.c
Expand Up @@ -439,7 +439,6 @@ extern struct lxc_popen_FILE *lxc_popen(const char *command)
int child_std_end = STDOUT_FILENO;

close(parent_end);
parent_end = -1;

if (child_end != child_std_end) {
/* dup2() doesn't dup close-on-exec flag */
Expand Down Expand Up @@ -478,7 +477,6 @@ extern struct lxc_popen_FILE *lxc_popen(const char *command)
/* parent */

close(child_end);
child_end = -1;

if (child_pid < 0) {
ERROR("fork failure");
Expand Down

0 comments on commit a43c220

Please sign in to comment.