ip6/mroute: Partly fix set-but-unused gcc47 warning
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Sat, 9 Feb 2013 03:44:33 +0000 (11:44 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Sat, 9 Feb 2013 03:44:33 +0000 (11:44 +0800)
sys/netinet6/ip6_mroute.c

index 1992bf7..b643519 100644 (file)
@@ -1652,7 +1652,6 @@ pim6_input(struct mbuf **mp, int *offp, int proto)
                struct mbuf *mcp;
                struct ip6_hdr *eip6;
                u_int32_t *reghdr;
-               int rc;
        
                ++pim6stat.pim6s_rcv_registers;
 
@@ -1754,8 +1753,8 @@ pim6_input(struct mbuf **mp, int *offp, int proto)
                }
 #endif
 
-               rc = if_simloop(mif6table[reg_mif_num].m6_ifp, m,
-                               dst.sin6_family, 0);
+               if_simloop(mif6table[reg_mif_num].m6_ifp, m,
+                   dst.sin6_family, 0);
        
                /* prepare the register head to send to the mrouting daemon */
                m = mcp;