Skip to content

Commit 7d9f3a4

Browse files
committed
[rtnl_nexthop] Minor cleanup
Don't do `if (...) expr;`. Always start a new line after the if(). Signed-off-by: Christoph Paasch <[email protected]>
1 parent 15f4323 commit 7d9f3a4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/route/route_obj.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -955,7 +955,8 @@ struct rtnl_nexthop *rtnl_route_nexthop_n(struct rtnl_route *r, int n)
955955

956956
i = 0;
957957
nl_list_for_each_entry(nh, &r->rt_nexthops, rtnh_list) {
958-
if (i == n) return nh;
958+
if (i == n)
959+
return nh;
959960
i++;
960961
}
961962
}

0 commit comments

Comments
 (0)