rip: Fix a -Wunused-but-set-variable warning

Fixes:		81728a538d ("Split rtinit() into multiple functions.")
Reviewed by:	imp, melifaro
MFC after:	1 week
Differential Revision:	https://reviews.freebsd.org/D34395
This commit is contained in:
Mark Johnston 2022-03-01 09:01:24 -05:00
parent 84369dd523
commit 9f70c04da4

View File

@ -780,9 +780,7 @@ void
rip_ctlinput(int cmd, struct sockaddr *sa, void *vip)
{
struct in_ifaddr *ia;
struct ifnet *ifp;
int err;
int flags;
NET_EPOCH_ASSERT();
@ -817,12 +815,6 @@ rip_ctlinput(int cmd, struct sockaddr *sa, void *vip)
if (ia == NULL || (ia->ia_flags & IFA_ROUTE))
return;
ifa_ref(&ia->ia_ifa);
flags = RTF_UP;
ifp = ia->ia_ifa.ifa_ifp;
if ((ifp->if_flags & IFF_LOOPBACK)
|| (ifp->if_flags & IFF_POINTOPOINT))
flags |= RTF_HOST;
err = ifa_del_loopback_route((struct ifaddr *)ia, sa);