diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-05-02 03:13:38 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-05-02 03:19:52 -0400 |
commit | 0c9e300adec668fd323b0e79c85b9136fccab649 (patch) | |
tree | df92810097024233af1decdec6b97f97338d305f /drivers | |
parent | eead75a2b4cd635ef2ba399018623358d67343cf (diff) |
Input: wacom - fix sparse warning
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/input/tablet/wacom_sys.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/input/tablet/wacom_sys.c b/drivers/input/tablet/wacom_sys.c index 86b96f94cd84..364f2c3432ff 100644 --- a/drivers/input/tablet/wacom_sys.c +++ b/drivers/input/tablet/wacom_sys.c | |||
@@ -1030,13 +1030,13 @@ static void wacom_wireless_work(struct work_struct *work) | |||
1030 | wacom = usb_get_intfdata(usbdev->config->interface[1]); | 1030 | wacom = usb_get_intfdata(usbdev->config->interface[1]); |
1031 | if (wacom->wacom_wac.input) | 1031 | if (wacom->wacom_wac.input) |
1032 | input_unregister_device(wacom->wacom_wac.input); | 1032 | input_unregister_device(wacom->wacom_wac.input); |
1033 | wacom->wacom_wac.input = 0; | 1033 | wacom->wacom_wac.input = NULL; |
1034 | 1034 | ||
1035 | /* Touch interface */ | 1035 | /* Touch interface */ |
1036 | wacom = usb_get_intfdata(usbdev->config->interface[2]); | 1036 | wacom = usb_get_intfdata(usbdev->config->interface[2]); |
1037 | if (wacom->wacom_wac.input) | 1037 | if (wacom->wacom_wac.input) |
1038 | input_unregister_device(wacom->wacom_wac.input); | 1038 | input_unregister_device(wacom->wacom_wac.input); |
1039 | wacom->wacom_wac.input = 0; | 1039 | wacom->wacom_wac.input = NULL; |
1040 | 1040 | ||
1041 | if (wacom_wac->pid == 0) { | 1041 | if (wacom_wac->pid == 0) { |
1042 | printk(KERN_INFO "wacom: wireless tablet disconnected\n"); | 1042 | printk(KERN_INFO "wacom: wireless tablet disconnected\n"); |