git: 3cd2425a3496 - stable/13 - pim6_input: eliminate write only variable rc

From: Warner Losh <imp_at_FreeBSD.org>
Date: Sun, 02 Oct 2022 04:30:10 UTC
The branch stable/13 has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=3cd2425a349605ed3846152242eda125201ab2e2

commit 3cd2425a349605ed3846152242eda125201ab2e2
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2022-07-08 17:53:34 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2022-10-02 04:25:57 +0000

    pim6_input: eliminate write only variable rc
    
    Sponsored by:           Netflix
    
    (cherry picked from commit c7761ca93e9f6be51db2a8632d6697253e93f6c3)
---
 sys/netinet6/ip6_mroute.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sys/netinet6/ip6_mroute.c b/sys/netinet6/ip6_mroute.c
index 087e0c5059fd..e49f730bb29f 100644
--- a/sys/netinet6/ip6_mroute.c
+++ b/sys/netinet6/ip6_mroute.c
@@ -1790,7 +1790,6 @@ pim6_input(struct mbuf *m, int off, int proto, void *arg __unused)
 		struct mbuf *mcp;
 		struct ip6_hdr *eip6;
 		u_int32_t *reghdr;
-		int rc;
 #ifdef MRT6DEBUG
 		char ip6bufs[INET6_ADDRSTRLEN], ip6bufd[INET6_ADDRSTRLEN];
 #endif
@@ -1868,7 +1867,7 @@ pim6_input(struct mbuf *m, int off, int proto, void *arg __unused)
 		    ip6_sprintf(ip6bufs, &eip6->ip6_src),
 		    ip6_sprintf(ip6bufd, &eip6->ip6_dst), reg_mif_num);
 
-		rc = if_simloop(mif6table[reg_mif_num].m6_ifp, m,
+		if_simloop(mif6table[reg_mif_num].m6_ifp, m,
 				dst.sin6_family, 0);
 
 		/* prepare the register head to send to the mrouting daemon */