From: Christian Brauner Date: Thu, 8 Feb 2018 14:42:16 +0000 (+0100) Subject: coverity: #1426734 X-Git-Tag: lxc-3.0.0.beta1~39^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa456191d07b60109e625e6ce1984d6ff6f5cbb3;p=thirdparty%2Flxc.git coverity: #1426734 Argument cannot be negative Signed-off-by: Christian Brauner --- diff --git a/src/lxc/monitor.c b/src/lxc/monitor.c index 644d2a52f..09fb14d42 100644 --- a/src/lxc/monitor.c +++ b/src/lxc/monitor.c @@ -239,7 +239,6 @@ int lxc_monitor_open(const char *lxcpath) if (fd < 0) { ERROR("Failed to connect to monitor socket: %s.", strerror(errno)); - close(fd); return -1; }