[PATCH] remove variable unused when !DEBUG

Roman Kagan rkagan at mail.ru
Mon Feb 7 11:36:08 EST 2005


Once you're at it: this patch makes the compiler stop complaining about
the unused variable ifnum when debugging is off.

Roman.

--- usbatm.c	7 Feb 2005 16:25:07 -0000	1.8
+++ usbatm.c	7 Feb 2005 16:26:38 -0000
@@ -1029,11 +1047,12 @@
 	struct usbatm_data *instance;
 	char *buf;
 	int error = -ENOMEM;
-	int ifnum = intf->altsetting->desc.bInterfaceNumber;
 	int i, length;
 	int need_heavy;
 
-	dev_dbg(&intf->dev, "trying device with vendor=0x%x, product=0x%x, ifnum %d\n", dev->descriptor.idVendor, dev->descriptor.idProduct, ifnum);
+	dev_dbg(&intf->dev, "trying device with vendor=0x%x, product=0x%x, ifnum %d\n",
+			dev->descriptor.idVendor, dev->descriptor.idProduct,
+			intf->altsetting->desc.bInterfaceNumber);
 
 	/* instance init */
 	if (!(instance = kmalloc(sizeof(*instance), GFP_KERNEL))) {



More information about the Usbatm mailing list