]> git.proxmox.com Git - mirror_lxc.git/commitdiff
coverity: #1435806
authorChristian Brauner <christian.brauner@ubuntu.com>
Sat, 26 May 2018 01:20:36 +0000 (03:20 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Sat, 26 May 2018 01:20:36 +0000 (03:20 +0200)
Logically dead code

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/lxccontainer.c

index 2a806676708acd92bc0dfb0bcd0c588b2704f29c..1910e23a69ad3e3e4030552fca64b2d03e5c2e02 100644 (file)
@@ -1971,11 +1971,8 @@ static bool do_lxcapi_reboot2(struct lxc_container *c, int timeout)
        }
        TRACE("Sent signal %d to pid %d", rebootsignal, pid);
 
-       if (timeout == 0) {
-               if (state_client_fd >= 0)
-                       close(state_client_fd);
+       if (timeout == 0)
                return true;
-       }
 
        ret = lxc_cmd_sock_rcv_state(state_client_fd, timeout);
        close(state_client_fd);