Commit 0c9e300a authored by Dmitry Torokhov's avatar Dmitry Torokhov

Input: wacom - fix sparse warning

This fixes the following warning from sparse

	warning: Using plain integer as NULL pointer
Reviewed-by: default avatarChris Bagwell <chris@cnpbagwell.com>
Signed-off-by: default avatarDmitry Torokhov <dtor@mail.ru>
parent eead75a2
...@@ -1030,13 +1030,13 @@ static void wacom_wireless_work(struct work_struct *work) ...@@ -1030,13 +1030,13 @@ static void wacom_wireless_work(struct work_struct *work)
wacom = usb_get_intfdata(usbdev->config->interface[1]); wacom = usb_get_intfdata(usbdev->config->interface[1]);
if (wacom->wacom_wac.input) if (wacom->wacom_wac.input)
input_unregister_device(wacom->wacom_wac.input); input_unregister_device(wacom->wacom_wac.input);
wacom->wacom_wac.input = 0; wacom->wacom_wac.input = NULL;
/* Touch interface */ /* Touch interface */
wacom = usb_get_intfdata(usbdev->config->interface[2]); wacom = usb_get_intfdata(usbdev->config->interface[2]);
if (wacom->wacom_wac.input) if (wacom->wacom_wac.input)
input_unregister_device(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) { if (wacom_wac->pid == 0) {
printk(KERN_INFO "wacom: wireless tablet disconnected\n"); printk(KERN_INFO "wacom: wireless tablet disconnected\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment