]> xenbits.xensource.com Git - people/royger/freebsd.git/commitdiff
axge: Fix a -Wunused-but-set-variable warning
authorMark Johnston <markj@FreeBSD.org>
Mon, 28 Feb 2022 15:54:32 +0000 (10:54 -0500)
committerMark Johnston <markj@FreeBSD.org>
Mon, 7 Mar 2022 13:18:37 +0000 (08:18 -0500)
(cherry picked from commit 9218449b98fdd176b9df1542551d0996aaa31f51)

sys/dev/usb/net/if_axge.c

index 4a4bef564c7a1b1a314ded94aa56c20b88d01f2d..e2f12e209303cbcb6fa14678c354dda6bb7f8d26 100644 (file)
@@ -452,11 +452,9 @@ axge_attach_post(struct usb_ether *ue)
 static int
 axge_attach_post_sub(struct usb_ether *ue)
 {
-       struct axge_softc *sc;
        struct ifnet *ifp;
        int error;
 
-       sc = uether_getsc(ue);
        ifp = ue->ue_ifp;
        ifp->if_flags = IFF_BROADCAST | IFF_SIMPLEX | IFF_MULTICAST;
        ifp->if_start = uether_start;