From: Sachin Kamat Date: Mon, 4 Jun 2012 10:58:48 +0000 (+0530) Subject: Input: MT - fix null pointer warning X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=27c347d64f5e4a7e141f6bdb85bbf59e0f1dcde6;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Henrik Rydberg --- 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;