coverity: #1425924

remove logically dead condition Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent 3ee9e4fb
...@@ -975,7 +975,7 @@ static int lxc_clear_nic(struct lxc_conf *c, const char *key) ...@@ -975,7 +975,7 @@ static int lxc_clear_nic(struct lxc_conf *c, const char *key)
if (!p1 || *(p1+1) == '\0') if (!p1 || *(p1+1) == '\0')
return -1; return -1;
if (!p1 && it) { if (it) {
lxc_remove_nic(it); lxc_remove_nic(it);
} else if (strcmp(p1, ".ipv4") == 0) { } else if (strcmp(p1, ".ipv4") == 0) {
struct lxc_list *it2,*next; struct lxc_list *it2,*next;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment