summaryrefslogtreecommitdiffstats
path: root/drivers/input/input-mt.c
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2012-06-04 16:28:48 +0530
committerHenrik Rydberg <rydberg@euromail.se>2012-06-04 16:33:34 +0200
commit27c347d64f5e4a7e141f6bdb85bbf59e0f1dcde6 (patch)
tree23859e03296cec184acb3f58cb4d3592713450a8 /drivers/input/input-mt.c
parentf8f5701bdaf9134b1f90e5044a82c66324d2073f (diff)
downloadop-kernel-dev-27c347d64f5e4a7e141f6bdb85bbf59e0f1dcde6.zip
op-kernel-dev-27c347d64f5e4a7e141f6bdb85bbf59e0f1dcde6.tar.gz
Input: MT - fix null pointer warning
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>
Diffstat (limited to 'drivers/input/input-mt.c')
-rw-r--r--drivers/input/input-mt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/input-mt.c b/drivers/input/input-mt.c
index f658086..70a16c7 100644
--- a/drivers/input/input-mt.c
+++ b/drivers/input/input-mt.c
@@ -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;
OpenPOWER on IntegriCloud