git: 9f70c04da481 - main - rip: Fix a -Wunused-but-set-variable warning

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Tue, 01 Mar 2022 14:39:57 UTC
The branch main has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=9f70c04da481f0080a444d34d55088d579d3ec5e

commit 9f70c04da481f0080a444d34d55088d579d3ec5e
Author:     Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2022-03-01 14:01:24 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2022-03-01 14:39:43 +0000

    rip: Fix a -Wunused-but-set-variable warning
    
    Fixes:          81728a538d24 ("Split rtinit() into multiple functions.")
    Reviewed by:    imp, melifaro
    MFC after:      1 week
    Differential Revision:  https://reviews.freebsd.org/D34395
---
 sys/netinet/raw_ip.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/sys/netinet/raw_ip.c b/sys/netinet/raw_ip.c
index fb6718dfd28e..cd048284c5e8 100644
--- a/sys/netinet/raw_ip.c
+++ b/sys/netinet/raw_ip.c
@@ -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);