From: nickcooper-zhangtonghao Date: Sun, 24 Jul 2016 14:40:35 +0000 (-0700) Subject: ovn: Remove unnecessary conditional statements. X-Git-Url: http://git.cascardo.eti.br/?p=cascardo%2Fovs.git;a=commitdiff_plain;h=2a368016afb00475671d4e74dc7f270923ac72b3 ovn: Remove unnecessary conditional statements. It is unnecessary to check ‘chassis_id’ again. Signed-off-by: nickcooper-zhangtonghao Signed-off-by: Ben Pfaff --- 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); }