Handle proper indent and insert missing not statement.
Signed-off-by: Chirag Shah <chirag@cumulusnetworks.com>
u_int32_t cost;
u_int32_t bw, refbw;
- if (oi->ifp->bandwidth)
- bw = oi->ifp->bandwidth;
if (!oi->ifp->bandwidth && oi->ifp->speed)
bw = oi->ifp->speed;
else
- bw = OSPF_DEFAULT_BANDWIDTH;
+ bw = oi->ifp->bandwidth ? oi->ifp->bandwidth : OSPF_DEFAULT_BANDWIDTH;
refbw = oi->ospf->ref_bandwidth;
/* A specifed ip ospf cost overrides a calculated one. */
if (IS_DEBUG_OSPF (zebra, ZEBRA_INTERFACE))
zlog_debug ("Zebra: Interface[%s] state udpate speed change %u -> %u bw change %d -> %d.",
- ifp->name, if_tmp.speed, ifp->speed, if_tmp.bandwidth, ifp->bandwidth);
+ ifp->name, if_tmp.speed, ifp->speed, if_tmp.bandwidth, ifp->bandwidth);
ospf_if_recalculate_output_cost (ifp);