]> Pileus Git - ~andy/linux/commitdiff
Input: fix sparse warning in multitouch code
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 25 Oct 2012 06:53:01 +0000 (23:53 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 25 Oct 2012 07:11:52 +0000 (00:11 -0700)
This fixes the following sparse warning:
drivers/input/input-mt.c:193:18: warning: Using plain integer as NULL pointer

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/input-mt.c

index c0ec7d42c3be05ffd574daec1870d44d560ed15a..bf2f30c025892f765288aaa25d296c925490f5ec 100644 (file)
@@ -190,7 +190,7 @@ void input_mt_report_pointer_emulation(struct input_dev *dev, bool use_count)
        if (!mt)
                return;
 
-       oldest = 0;
+       oldest = NULL;
        oldid = mt->trkid;
        count = 0;