From 2a368016afb00475671d4e74dc7f270923ac72b3 Mon Sep 17 00:00:00 2001 From: nickcooper-zhangtonghao Date: Sun, 24 Jul 2016 07:40:35 -0700 Subject: [PATCH] ovn: Remove unnecessary conditional statements. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit It is unnecessary to check ‘chassis_id’ again. Signed-off-by: nickcooper-zhangtonghao Signed-off-by: Ben Pfaff --- ovn/controller/ovn-controller.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ovn/controller/ovn-controller.c b/ovn/controller/ovn-controller.c index dcab918ad..4d9490a5a 100644 --- a/ovn/controller/ovn-controller.c +++ b/ovn/controller/ovn-controller.c @@ -443,11 +443,11 @@ main(int argc, char *argv[]) lflow_run(&ctx, &lports, &mcgroups, &local_datapaths, &patched_datapaths, &group_table, &ct_zones); - if (chassis_id) { - physical_run(&ctx, mff_ovn_geneve, - br_int, chassis_id, &ct_zones, - &local_datapaths, &patched_datapaths); - } + + physical_run(&ctx, mff_ovn_geneve, + br_int, chassis_id, &ct_zones, + &local_datapaths, &patched_datapaths); + ofctrl_put(&group_table); } -- 2.20.1