Unbreak LINT from r184381 using the correct variable in debugging

DPRINTF for the device and remove dead code.
This commit is contained in:
Bjoern A. Zeeb 2008-10-28 09:45:07 +00:00
parent 048e2d5899
commit 31b5bf894f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=184403

View File

@ -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;