From 94f0035bf636ba853451d59c129e26d94850c04d Mon Sep 17 00:00:00 2001 From: Christian Brauner Date: Thu, 7 Dec 2017 15:07:26 +0100 Subject: [PATCH] coverity: #1425924 remove logically dead condition Signed-off-by: Christian Brauner --- src/lxc/confile_legacy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5