2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-30 05:47:55 +00:00

bridge: Shorten long lines.

Signed-off-by: Ethan Jackson <ethan@nicira.com>
This commit is contained in:
Ethan Jackson 2012-03-20 18:15:48 -07:00
parent 2c2ea5a88a
commit 0acaddd05f

View File

@ -1260,7 +1260,8 @@ bridge_configure_flow_eviction_threshold(struct bridge *br)
const char *threshold_str; const char *threshold_str;
unsigned threshold; unsigned threshold;
threshold_str = bridge_get_other_config(br->cfg, "flow-eviction-threshold"); threshold_str = bridge_get_other_config(br->cfg,
"flow-eviction-threshold");
if (threshold_str) { if (threshold_str) {
threshold = strtoul(threshold_str, NULL, 10); threshold = strtoul(threshold_str, NULL, 10);
} else { } else {
@ -1513,7 +1514,8 @@ iface_refresh_status(struct iface *iface)
error = netdev_get_flags(iface->netdev, &flags); error = netdev_get_flags(iface->netdev, &flags);
if (!error) { if (!error) {
ovsrec_interface_set_admin_state(iface->cfg, flags & NETDEV_UP ? "up" : "down"); ovsrec_interface_set_admin_state(iface->cfg,
flags & NETDEV_UP ? "up" : "down");
} }
else { else {
ovsrec_interface_set_admin_state(iface->cfg, NULL); ovsrec_interface_set_admin_state(iface->cfg, NULL);
@ -1628,7 +1630,8 @@ iface_refresh_stats(struct iface *iface)
#undef IFACE_STAT #undef IFACE_STAT
assert(i == ARRAY_SIZE(keys)); assert(i == ARRAY_SIZE(keys));
ovsrec_interface_set_statistics(iface->cfg, keys, values, ARRAY_SIZE(keys)); ovsrec_interface_set_statistics(iface->cfg, keys, values,
ARRAY_SIZE(keys));
#undef IFACE_STATS #undef IFACE_STATS
} }