summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorglebius <glebius@FreeBSD.org>2013-10-28 21:09:59 +0000
committerglebius <glebius@FreeBSD.org>2013-10-28 21:09:59 +0000
commitffbfcd667fe62205574d6ed3727590554ba013cb (patch)
tree379237e4469ce2d698c3b86038468936e41e7506
parent3718fe181f1ad37475cfbe2fbad6589a270fae03 (diff)
downloadFreeBSD-src-ffbfcd667fe62205574d6ed3727590554ba013cb.zip
FreeBSD-src-ffbfcd667fe62205574d6ed3727590554ba013cb.tar.gz
Remove dead function show_device(). It isn't buildable if DEBUG is
defined, due to unknown field "xn_ifno". The field wasn't known since beginning of history of this file.
-rw-r--r--sys/dev/xen/netfront/netfront.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/sys/dev/xen/netfront/netfront.c b/sys/dev/xen/netfront/netfront.c
index 481c2d9..51ffb82 100644
--- a/sys/dev/xen/netfront/netfront.c
+++ b/sys/dev/xen/netfront/netfront.c
@@ -165,7 +165,6 @@ static int xn_configure_features(struct netfront_info *np);
static void xn_watchdog(struct ifnet *);
#endif
-static void show_device(struct netfront_info *sc);
#ifdef notyet
static void netfront_closing(device_t dev);
#endif
@@ -644,8 +643,6 @@ setup_device(device_t dev, struct netfront_info *info)
goto fail;
}
- show_device(info);
-
return (0);
fail:
@@ -1969,25 +1966,6 @@ network_connect(struct netfront_info *np)
return (0);
}
-static void
-show_device(struct netfront_info *sc)
-{
-#ifdef DEBUG
- if (sc) {
- IPRINTK("<vif handle=%u %s(%s) evtchn=%u irq=%u tx=%p rx=%p>\n",
- sc->xn_ifno,
- be_state_name[sc->xn_backend_state],
- sc->xn_user_state ? "open" : "closed",
- sc->xn_evtchn,
- sc->xn_irq,
- sc->xn_tx_if,
- sc->xn_rx_if);
- } else {
- IPRINTK("<vif NULL>\n");
- }
-#endif
-}
-
static void
xn_query_features(struct netfront_info *np)
{
OpenPOWER on IntegriCloud