Thread (1 message) 1 message, 1 author, 2012-05-01

Re: [PATCH] Input: wacom - fix sparse warning

From: Chris Bagwell <hidden>
Date: 2012-05-01 16:19:41

On Tue, May 1, 2012 at 11:18 AM, Chris Bagwell [off-list ref] wrote:


On Sun, Apr 29, 2012 at 11:08 PM, Dmitry Torokhov
[off-list ref] wrote:
quoted
This fixes the following warning from sparse

       warning: Using plain integer as NULL pointer

Signed-off-by: Dmitry Torokhov <redacted>

Reviewed-by: Chris Bagwell <redacted>
quoted
---
 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 be13223..e785fcd 100644
--- a/drivers/input/tablet/wacom_sys.c
+++ b/drivers/input/tablet/wacom_sys.c
@@ -1015,13 +1015,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");
--
1.7.7.6


--
Dmitry
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help