diff --git a/isisd/isisd.c b/isisd/isisd.c index 4a98beaa720c..b82dbc2b4e0c 100644 --- a/isisd/isisd.c +++ b/isisd/isisd.c @@ -1043,13 +1043,12 @@ int show_isis_interface_common_json(struct json_object *json, for (ALL_LIST_ELEMENTS_RO(area->circuit_list, cnode, circuit)) { circuit_json = json_object_new_object(); - if (!ifname || strcmp(circuit->interface->name, - ifname) == 0) { + if (!ifname || + strcmp(circuit->interface->name, ifname) == 0) { isis_circuit_print_json(circuit, circuit_json, detail); - json_object_array_add(circuits_json, - circuit_json); + json_object_array_add(circuits_json, circuit_json); if (ifname) break; } @@ -1072,16 +1071,13 @@ int show_isis_interface_common_json(struct json_object *json, circuits_json = json_object_new_array(); json_object_object_add(area_json, "circuits", circuits_json); - for (ALL_LIST_ELEMENTS_RO(area->circuit_list, - cnode, circuit)) { + for (ALL_LIST_ELEMENTS_RO(area->circuit_list, cnode, circuit)) { circuit_json = json_object_new_object(); - if (!ifname || strcmp(circuit->interface->name, - ifname) == 0) { + if (!ifname || strcmp(circuit->interface->name, ifname) == 0) { isis_circuit_print_json(circuit, circuit_json, detail); - json_object_array_add(circuits_json, - circuit_json); + json_object_array_add(circuits_json, circuit_json); if (ifname) break; }