]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
coverity: #1425924
authorChristian Brauner <christian.brauner@ubuntu.com>
Thu, 7 Dec 2017 14:07:26 +0000 (15:07 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Fri, 15 Dec 2017 12:24:42 +0000 (13:24 +0100)
remove logically dead condition

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

index 75ad355d9a9a3a7baaa2b9b71d3b6df74a18bc37..8563d7c5c3ad75349fbd0c6caf726443cb8cec1c 100644 (file)
@@ -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;