remove unused variable in wacom driver

remove unused variable in wacom driver

Post by William Lee Irwin II » Sat, 12 Oct 2002 16:20:24



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'

--- akpm-2.5.41-3/drivers/usb/input/wacom.c     2002-10-11 06:09:32.000000000 -0700

        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)))
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

remove unused variable in wacom driver

Post by Greg K » Sun, 13 Oct 2002 07:10:04



Quote:> 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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

 
 
 

1. remove unused variable from drivers/net/irda/ali-ircc.c

Hi Jean,

the patch below removes an unused variable that generated a compile time
warning. I've tested the compilation with 2.5.59.

cu
Adrian

--- linux-2.5.59-full/drivers/net/irda/ali-ircc.c.old   2003-01-19 00:09:16.000000000 +0100

        struct ali_ircc_cb *self;
        struct pm_dev *pmdev;
        int dongle_id;
-       int ret;
        int err;

        IRDA_DEBUG(2, "%s(), ---------------- Start ----------------\n", __FUNCTION__);      
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

2. Named Pipes

3. [TRIVIAL] remove agpgart_be.c unused variables

4. ARC to SRM

5. remove an unused variable from xirc2ps_cs.c

6. automatic update

7. Remove unused variable from rsdump.c

8. mobile ip porting to solaris 8

9. remove two unused variables from mxser.c

10. remove unused variable in arch/i386/kernel/cpu/cyrix.c

11. Remove unused variable from hwgpe.c

12. Remove unused variables from fs/partitions/check.c

13. remove an unused variable from fd_mcs.c