bridge: Fix set-but-unused gcc47 warning
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Fri, 8 Feb 2013 10:58:41 +0000 (18:58 +0800)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Fri, 8 Feb 2013 10:58:41 +0000 (18:58 +0800)
sys/net/bridge/if_bridge.c

index 3faaae0..dd9bf42 100644 (file)
@@ -912,7 +912,6 @@ static void
 bridge_mutecaps(struct bridge_ifinfo *bif_info, struct ifnet *ifp, int mute)
 {
        struct ifreq ifr;
-       int error;
 
        if (ifp->if_ioctl == NULL)
                return;
@@ -932,7 +931,7 @@ bridge_mutecaps(struct bridge_ifinfo *bif_info, struct ifnet *ifp, int mute)
 
        if (bif_info->bifi_mutecap != 0) {
                ifnet_serialize_all(ifp);
-               error = ifp->if_ioctl(ifp, SIOCSIFCAP, (caddr_t)&ifr, NULL);
+               ifp->if_ioctl(ifp, SIOCSIFCAP, (caddr_t)&ifr, NULL);
                ifnet_deserialize_all(ifp);
        }
 }