Module Name: src
Committed By: jakllsch
Date: Mon Oct 23 15:08:05 UTC 2017
Modified Files:
src/sys/dev/ic: dwc_gmac.c
Log Message:
We don't need '&mii', but just 'mii' for mii_detach().
To generate a diff of this commit:
cvs rdiff -u -r1.41 -r1.42 src/sys/dev/ic/dwc_gmac.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/ic/dwc_gmac.c
diff -u src/sys/dev/ic/dwc_gmac.c:1.41 src/sys/dev/ic/dwc_gmac.c:1.42
--- src/sys/dev/ic/dwc_gmac.c:1.41 Mon Oct 23 09:27:46 2017
+++ src/sys/dev/ic/dwc_gmac.c Mon Oct 23 15:08:05 2017
@@ -1,4 +1,4 @@
-/* $NetBSD: dwc_gmac.c,v 1.41 2017/10/23 09:27:46 msaitoh Exp $ */
+/* $NetBSD: dwc_gmac.c,v 1.42 2017/10/23 15:08:05 jakllsch Exp $ */
/*-
* Copyright (c) 2013, 2014 The NetBSD Foundation, Inc.
@@ -41,7 +41,7 @@
#include <sys/cdefs.h>
-__KERNEL_RCSID(1, "$NetBSD: dwc_gmac.c,v 1.41 2017/10/23 09:27:46 msaitoh Exp $");
+__KERNEL_RCSID(1, "$NetBSD: dwc_gmac.c,v 1.42 2017/10/23 15:08:05 jakllsch Exp $");
/* #define DWC_GMAC_DEBUG 1 */
@@ -282,7 +282,7 @@ dwc_gmac_attach(struct dwc_gmac_softc *s
return;
fail_2:
ifmedia_removeall(&mii->mii_media);
- mii_detach(&mii, MII_PHY_ANY, MII_OFFSET_ANY);
+ mii_detach(mii, MII_PHY_ANY, MII_OFFSET_ANY);
mutex_destroy(&sc->sc_txq.t_mtx);
mutex_destroy(&sc->sc_rxq.r_mtx);
mutex_obj_free(sc->sc_lock);