git: 7811cca8722d - main - netlink: fix compilation withous INET6

From: Gleb Smirnoff <glebius_at_FreeBSD.org>
Date: Fri, 02 Jun 2023 16:10:35 UTC
The branch main has been updated by glebius:

URL: https://cgit.FreeBSD.org/src/commit/?id=7811cca8722dbf91df4144be462ec220c690f294

commit 7811cca8722dbf91df4144be462ec220c690f294
Author:     Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2023-06-02 16:09:55 +0000
Commit:     Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2023-06-02 16:10:26 +0000

    netlink: fix compilation withous INET6
    
    Fixes:  a77facd27368f618520d25391cfce11149879a41
---
 sys/netlink/route/iface.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/sys/netlink/route/iface.c b/sys/netlink/route/iface.c
index 5e0295e7fe52..16bbe4d000cc 100644
--- a/sys/netlink/route/iface.c
+++ b/sys/netlink/route/iface.c
@@ -1277,9 +1277,7 @@ rtnl_handle_addr(struct nlmsghdr *hdr, struct nlpcb *nlp, struct nl_pstate *npt)
 		    attrs.ifa_index);
 		return (ENOENT);
 	}
-#ifdef INET6
 	int if_flags = if_getflags(ifp);
-#endif
 
 #if defined(INET) || defined(INET6)
 	bool new = hdr->nlmsg_type == NL_RTM_NEWADDR;