Input: wacom - fix sparse warning
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 2 May 2012 07:13:38 +0000 (00:13 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 2 May 2012 07:19:52 +0000 (00:19 -0700)
This fixes the following warning from sparse

warning: Using plain integer as NULL pointer

Reviewed-by: Chris Bagwell <chris@cnpbagwell.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/tablet/wacom_sys.c

index 86b96f94cd84f339abb73fe52dd6f6234d3c9448..364f2c3432ff0042c06de41203db8f3edf990906 100644 (file)
@@ -1030,13 +1030,13 @@ static void wacom_wireless_work(struct work_struct *work)
        wacom = usb_get_intfdata(usbdev->config->interface[1]);
        if (wacom->wacom_wac.input)
                input_unregister_device(wacom->wacom_wac.input);
-       wacom->wacom_wac.input = 0;
+       wacom->wacom_wac.input = NULL;
 
        /* Touch interface */
        wacom = usb_get_intfdata(usbdev->config->interface[2]);
        if (wacom->wacom_wac.input)
                input_unregister_device(wacom->wacom_wac.input);
-       wacom->wacom_wac.input = 0;
+       wacom->wacom_wac.input = NULL;
 
        if (wacom_wac->pid == 0) {
                printk(KERN_INFO "wacom: wireless tablet disconnected\n");