]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Input: MT - fix null pointer warning
authorSachin Kamat <sachin.kamat@linaro.org>
Mon, 4 Jun 2012 10:58:48 +0000 (16:28 +0530)
committerHenrik Rydberg <rydberg@euromail.se>
Mon, 4 Jun 2012 14:33:34 +0000 (16:33 +0200)
Fixes the following sparse warning:
drivers/input/input-mt.c:138:40: warning: Using plain integer as NULL pointer

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Henrik Rydberg <rydberg@euromail.se>
drivers/input/input-mt.c

index f658086fbbe00a56aec8ab3084fa733757107e5f..70a16c7da8ccbefc542477e27623a8641c72ad25 100644 (file)
@@ -135,7 +135,7 @@ EXPORT_SYMBOL(input_mt_report_finger_count);
  */
 void input_mt_report_pointer_emulation(struct input_dev *dev, bool use_count)
 {
-       struct input_mt_slot *oldest = 0;
+       struct input_mt_slot *oldest = NULL;
        int oldid = dev->trkid;
        int count = 0;
        int i;