diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2012-06-04 16:28:48 +0530 |
---|---|---|
committer | Henrik Rydberg <rydberg@euromail.se> | 2012-06-04 16:33:34 +0200 |
commit | 27c347d64f5e4a7e141f6bdb85bbf59e0f1dcde6 (patch) | |
tree | 23859e03296cec184acb3f58cb4d3592713450a8 /drivers/input | |
parent | f8f5701bdaf9134b1f90e5044a82c66324d2073f (diff) | |
download | linux-next-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')
-rw-r--r-- | drivers/input/input-mt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/input-mt.c b/drivers/input/input-mt.c index f658086fbbe0..70a16c7da8cc 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; |