Skip to content

Commit 27c347d

Browse files
Sachin Kamatrydberg
authored andcommitted
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>
1 parent f8f5701 commit 27c347d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/input/input-mt.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ EXPORT_SYMBOL(input_mt_report_finger_count);
135135
*/
136136
void input_mt_report_pointer_emulation(struct input_dev *dev, bool use_count)
137137
{
138-
struct input_mt_slot *oldest = 0;
138+
struct input_mt_slot *oldest = NULL;
139139
int oldid = dev->trkid;
140140
int count = 0;
141141
int i;

0 commit comments

Comments
 (0)