Skip to contentSkip to conversation

remove unused variable in wacom driver

PATCH Applied William Lee Irwin III 2 participants 2 messages Oct 11, 2002 – Oct 12, 2002 USB

lore
Share & tools
lore
#0 lore raw

wacom.c generates the following warning:

drivers/usb/input/wacom.c: In function `wacom_probe':
drivers/usb/input/wacom.c:405: warning: unused variable `rep_data'

drivers/usb/input/wacom.c +0 -1
@@ -402,7 +402,6 @@
 	struct usb_device *dev = interface_to_usbdev(intf);
 	struct usb_endpoint_descriptor *endpoint;
 	struct wacom *wacom;
-	char rep_data[2] = {0x02, 0x02};
 	char path[64];
 
 	if (!(wacom = kmalloc(sizeof(struct wacom), GFP_KERNEL)))
Applied
#1 lore raw
Quoted 4 lines · William Lee Irwin III

wacom.c generates the following warning:

drivers/usb/input/wacom.c: In function `wacom_probe':
drivers/usb/input/wacom.c:405: warning: unused variable `rep_data'

Thanks, applied.

greg k-h