routing: fix build without ROUTE_MPATH

MFC after:	1 month
This commit is contained in:
Alexander V. Chernikov 2022-08-10 20:44:43 +00:00
parent 348164aa9e
commit 685866bbe1

View File

@ -920,11 +920,11 @@ rt_delete_conditional(struct rib_head *rnh, struct rtentry *rt,
int prio, rib_filter_f_t *cb, void *cbdata, struct rib_cmd_info *rc)
{
struct nhop_object *nh = rt->rt_nhop;
struct route_nhop_data rnd;
#ifdef ROUTE_MPATH
if (NH_IS_NHGRP(nh)) {
struct nhgrp_object *nhg = (struct nhgrp_object *)nh;
struct route_nhop_data rnd;
int error;
if (cb == NULL)