The lp and lp_best variables are not needed in
lnet_find_route_locked().
Test-Parameters: trivial
Signed-off-by: Chris Horn <hornc@cray.com>
Change-Id: I61a7097ab66703a1af1346c7301b9efc7e4392c9
Reviewed-on: https://review.whamcloud.com/36620
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alexandr Boyko <c17825@cray.com>
Reviewed-by: Alexey Lyashkov <c17817@cray.com>
Reviewed-by: Amir Shehata <ashehata@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
struct lnet_peer_ni *best_gw_ni = NULL;
struct lnet_route *best_route;
struct lnet_route *last_route;
struct lnet_peer_ni *best_gw_ni = NULL;
struct lnet_route *best_route;
struct lnet_route *last_route;
- struct lnet_peer *lp_best;
struct lnet_route *route;
struct lnet_route *route;
best_route = last_route = NULL;
list_for_each_entry(route, &rnet->lrn_routes, lr_list) {
best_route = last_route = NULL;
list_for_each_entry(route, &rnet->lrn_routes, lr_list) {
- lp = route->lr_gateway;
-
if (!lnet_is_route_alive(route))
continue;
if (!lnet_is_route_alive(route))
continue;
best_route = last_route = route;
best_route = last_route = route;
best_gw_ni = lnet_find_best_lpni_on_net(NULL,
LNET_NID_ANY,
route->lr_gateway,
best_gw_ni = lnet_find_best_lpni_on_net(NULL,
LNET_NID_ANY,
route->lr_gateway,
continue;
best_route = route;
continue;
best_route = route;
}
*prev_route = last_route;
}
*prev_route = last_route;