From: Christian Brauner Date: Thu, 7 Dec 2017 14:07:26 +0000 (+0100) Subject: coverity: #1425924 X-Git-Tag: lxc-3.0.0.beta1~128^2~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=94f0035bf636ba853451d59c129e26d94850c04d;p=thirdparty%2Flxc.git coverity: #1425924 remove logically dead condition Signed-off-by: Christian Brauner --- diff --git a/src/lxc/confile_legacy.c b/src/lxc/confile_legacy.c index 75ad355d9..8563d7c5c 100644 --- a/src/lxc/confile_legacy.c +++ b/src/lxc/confile_legacy.c @@ -975,7 +975,7 @@ static int lxc_clear_nic(struct lxc_conf *c, const char *key) if (!p1 || *(p1+1) == '\0') return -1; - if (!p1 && it) { + if (it) { lxc_remove_nic(it); } else if (strcmp(p1, ".ipv4") == 0) { struct lxc_list *it2,*next;