Commit 27c347d64f5e4a7e141f6bdb85bbf59e0f1dcde6

Authored by Sachin Kamat
Committed by Henrik Rydberg
1 parent f8f5701bda

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

drivers/input/input-mt.c
... ... @@ -135,7 +135,7 @@
135 135 */
136 136 void input_mt_report_pointer_emulation(struct input_dev *dev, bool use_count)
137 137 {
138   - struct input_mt_slot *oldest = 0;
  138 + struct input_mt_slot *oldest = NULL;
139 139 int oldid = dev->trkid;
140 140 int count = 0;
141 141 int i;