summaryrefslogtreecommitdiffstats
path: root/ospf6d/ospf6_route.c
diff options
context:
space:
mode:
authorDonatas Abraitis <donatas.abraitis@gmail.com>2021-11-25 23:02:37 +0100
committerDonatas Abraitis <donatas.abraitis@gmail.com>2021-11-27 10:20:59 +0100
commitc48349e346571d307b48ca594f6edd096be7ccfd (patch)
tree3d465f92432dedb0f4496d4682228d36f29b2db9 /ospf6d/ospf6_route.c
parentbgpd: Convert vty_out to vty_json for JSON (diff)
downloadfrr-c48349e346571d307b48ca594f6edd096be7ccfd.tar.xz
frr-c48349e346571d307b48ca594f6edd096be7ccfd.zip
*: Remove redundand braces for single statement blocks
Signed-off-by: Donatas Abraitis <donatas.abraitis@gmail.com>
Diffstat (limited to 'ospf6d/ospf6_route.c')
-rw-r--r--ospf6d/ospf6_route.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/ospf6d/ospf6_route.c b/ospf6d/ospf6_route.c
index 880987b3f..f5d60d80f 100644
--- a/ospf6d/ospf6_route.c
+++ b/ospf6d/ospf6_route.c
@@ -1610,9 +1610,8 @@ int ospf6_route_table_show(struct vty *vty, int argc_start, int argc,
/* Give summary of this route table */
if (summary) {
ospf6_route_show_table_summary(vty, table, json, use_json);
- if (use_json) {
+ if (use_json)
vty_json(vty, json);
- }
return CMD_SUCCESS;
}
@@ -1626,9 +1625,8 @@ int ospf6_route_table_show(struct vty *vty, int argc_start, int argc,
ospf6_route_show_table_prefix(vty, &prefix, table, json,
use_json);
- if (use_json) {
+ if (use_json)
vty_json(vty, json);
- }
return CMD_SUCCESS;
}
@@ -1641,9 +1639,8 @@ int ospf6_route_table_show(struct vty *vty, int argc_start, int argc,
else
ospf6_route_show_table(vty, detail, table, json, use_json);
- if (use_json) {
+ if (use_json)
vty_json(vty, json);
- }
return CMD_SUCCESS;
}