diff options
author | bz <bz@FreeBSD.org> | 2008-10-28 09:45:07 +0000 |
---|---|---|
committer | bz <bz@FreeBSD.org> | 2008-10-28 09:45:07 +0000 |
commit | 7bf985b7df7b508efebbe1506cec69a0e4d8f30d (patch) | |
tree | e4f17cc4e4f92e2438bbcbf82de4c01ba62bbef2 | |
parent | 4d410d139bf17c0573aa38279836a39fd20fbec1 (diff) | |
download | FreeBSD-src-7bf985b7df7b508efebbe1506cec69a0e4d8f30d.zip FreeBSD-src-7bf985b7df7b508efebbe1506cec69a0e4d8f30d.tar.gz |
Unbreak LINT from r184381 using the correct variable in debugging
DPRINTF for the device and remove dead code.
-rw-r--r-- | sys/dev/usb/u3g.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/sys/dev/usb/u3g.c b/sys/dev/usb/u3g.c index 340d81a..90ba081 100644 --- a/sys/dev/usb/u3g.c +++ b/sys/dev/usb/u3g.c @@ -53,7 +53,7 @@ //#define U3G_DEBUG #ifdef U3G_DEBUG -#define DPRINTF(x...) do { if (u3gdebug) device_printf(sc->dev, ##x); } while (0) +#define DPRINTF(x...) do { if (u3gdebug) device_printf(sc->sc_dev, ##x); } while (0) #define DPRINTFN(n, x...) do { if (u3gdebug > (n)) device_printf(self, ##x); } while (0) int u3gdebug = 1; #else @@ -453,9 +453,6 @@ static int u3gstub_scsi_eject(struct u3gstub_softc *sc, struct usb_attach_arg *uaa) { unsigned char cmd[31]; -#ifdef U3G_DEBUG - device_t self = uaa->device; -#endif usb_interface_descriptor_t *id; usb_endpoint_descriptor_t *ed = NULL; int i; |