summaryrefslogtreecommitdiffstats
path: root/vpp/app
diff options
context:
space:
mode:
authorDave Barach <dave@barachs.net>2016-10-12 17:32:39 -0400
committerDave Barach <dave@barachs.net>2016-10-12 17:32:56 -0400
commit1946a12a52deddfb501d2bdf320ff280cb42a076 (patch)
tree0301cf76c49f81ed4a58e26587f24bddfdac898b /vpp/app
parent1e66d5c54b81b8d6290153f1b3c2b021c4b62fad (diff)
Fix coverity warnings, VPP-486
Change-Id: I7a14d9a28514cdb49f65fab1b120b53239fed7e3 Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'vpp/app')
-rw-r--r--vpp/app/vpe_cli.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/vpp/app/vpe_cli.c b/vpp/app/vpe_cli.c
index 3b24c26f..38bf843d 100644
--- a/vpp/app/vpe_cli.c
+++ b/vpp/app/vpe_cli.c
@@ -72,8 +72,7 @@ virtual_ip_cmd_fn_command_fn (vlib_main_t * vm,
format_unformat_error, input);
}
}
- if (vec_len (mac_addrs) == 0 ||
- vec_len (next_hops) == 0 || vec_len (mac_addrs) != vec_len (next_hops))
+ if (vec_len (mac_addrs) == 0 || vec_len (mac_addrs) != vec_len (next_hops))
goto barf;
/* Create / delete special interface route /32's */