Skip to content

Commit

Permalink
coverity: #1425924
Browse files Browse the repository at this point in the history
remove logically dead condition

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Dec 7, 2017
1 parent 3ee9e4f commit 94f0035
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lxc/confile_legacy.c
Expand Up @@ -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;
Expand Down

0 comments on commit 94f0035

Please sign in to comment.