From 7bf985b7df7b508efebbe1506cec69a0e4d8f30d Mon Sep 17 00:00:00 2001 From: bz Date: Tue, 28 Oct 2008 09:45:07 +0000 Subject: Unbreak LINT from r184381 using the correct variable in debugging DPRINTF for the device and remove dead code. --- sys/dev/usb/u3g.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'sys/dev/usb/u3g.c') 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; -- cgit v1.1