projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f8f5701
)
Input: MT - fix null pointer warning
author
Sachin Kamat
<sachin.kamat@linaro.org>
Mon, 4 Jun 2012 10:58:48 +0000
(16:28 +0530)
committer
Henrik Rydberg
<rydberg@euromail.se>
Mon, 4 Jun 2012 14:33:34 +0000
(16:33 +0200)
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>
drivers/input/input-mt.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/input/input-mt.c
b/drivers/input/input-mt.c
index f658086fbbe00a56aec8ab3084fa733757107e5f..70a16c7da8ccbefc542477e27623a8641c72ad25 100644
(file)
--- 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;