git: a82cdd321173 - stable/13 - axge: Fix a -Wunused-but-set-variable warning
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 07 Mar 2022 13:29:52 UTC
The branch stable/13 has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=a82cdd32117387fa372ae57041014be0e8e61b84
commit a82cdd32117387fa372ae57041014be0e8e61b84
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2022-02-28 15:54:32 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2022-03-07 13:18:37 +0000
axge: Fix a -Wunused-but-set-variable warning
(cherry picked from commit 9218449b98fdd176b9df1542551d0996aaa31f51)
---
sys/dev/usb/net/if_axge.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/sys/dev/usb/net/if_axge.c b/sys/dev/usb/net/if_axge.c
index 4a4bef564c7a..e2f12e209303 100644
--- a/sys/dev/usb/net/if_axge.c
+++ b/sys/dev/usb/net/if_axge.c
@@ -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;