Skip to contentSkip to conversation

Input: wacom - fix sparse warning

PATCH In review Dmitry Torokhov 2 participants 2 messages Apr 30, 2012 – May 1, 2012 1 message not in the archive

Subsystems (2)
lore
Share & tools
lore

Dmitry Torokhov

author maintainer
#0 lore raw

PATCH 1/1 Input: wacom - fix sparse warning

This fixes the following warning from sparse

warning: Using plain integer as NULL pointer

---
 drivers/input/tablet/wacom_sys.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/input/tablet/wacom_sys.c +2 -2
index be13223..e785fcd 100644
@@ -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");
Signature · 5 lines
1.7.7.6


-- 
Dmitry

A message that is not in the archive (sent off-list or not yet received): CAGzDe_Zkq9BNTeMf_t9HsJoBWUyQoMfT-gGmvRRvztQ=whrmjA@mail.gmail.com

#2 lore raw
Quoted 40 lines · Chris Bagwell
Quoted 6 lines · Dmitry Torokhov

This fixes the following warning from sparse

       warning: Using plain integer as NULL pointer

Quoted 25 lines

---
 drivers/input/tablet/wacom_sys.c |    4 ++--

 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/input/tablet/wacom_sys.c +2 -2
index be13223..e785fcd 100644
@@ -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;
 
Quoted 10 lines
Quoted 8 lines
drivers/input/tablet/wacom_sys.c +0 -0
        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 [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html