git: 9218449b98fd - main - axge: Fix a -Wunused-but-set-variable warning
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 28 Feb 2022 16:11:01 UTC
The branch main has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=9218449b98fdd176b9df1542551d0996aaa31f51
commit 9218449b98fdd176b9df1542551d0996aaa31f51
Author: Mark Johnston <markj@FreeBSD.org>
AuthorDate: 2022-02-28 15:54:32 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2022-02-28 15:54:32 +0000
axge: Fix a -Wunused-but-set-variable warning
MFC after: 1 week
---
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 be5bb67156ec..e777a8298cd9 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;