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.
This commit is contained in:
parent
77374386a2
commit
6483a98b43
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user