浏览代码

Input: fix sparse warning in multitouch code

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>
Dmitry Torokhov 13 年之前
父节点
当前提交
5161870f51
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/input/input-mt.c

+ 1 - 1
drivers/input/input-mt.c

@@ -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;