summaryrefslogtreecommitdiff
path: root/zebra/zebra_netns_id.c
diff options
context:
space:
mode:
authorRuss White <russ@riw.us>2018-06-29 13:24:42 -0400
committerGitHub <noreply@github.com>2018-06-29 13:24:42 -0400
commit42edc486069eb0517a54ee5b4e7176a2bbfc24f0 (patch)
tree5412243161902c5507d822a0f3d8480fe0f1191a /zebra/zebra_netns_id.c
parentb723011d397898959c8a6bd46bb3233e20c7cf9a (diff)
parent0cfbff749e4a47c96511f2eeed4bd970a7b65c68 (diff)
Merge pull request #2514 from pacovn/Coverity_1462467_1465497_Control_flow_issues
zebra: control flow issues (Coverity 1462467 1465497)
Diffstat (limited to 'zebra/zebra_netns_id.c')
-rw-r--r--zebra/zebra_netns_id.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/zebra/zebra_netns_id.c b/zebra/zebra_netns_id.c
index 317b02f601..96e6df34da 100644
--- a/zebra/zebra_netns_id.c
+++ b/zebra/zebra_netns_id.c
@@ -307,7 +307,7 @@ ns_id_t zebra_ns_id_get(const char *netnspath)
nlh = (struct nlmsghdr *)((char *)nlh
+ NETLINK_ALIGN(
nlh->nlmsg_len));
- } while (len != 0 && return_nsid != NS_UNKNOWN && ret == 0);
+ } while (len != 0 && ret == 0);
}
close(fd);