summaryrefslogtreecommitdiffstats
path: root/drivers/input
diff options
context:
space:
mode:
authorAndrew Morton <akpm@linux-foundation.org>2008-03-10 03:08:40 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2008-03-14 11:54:13 -0400
commit05be5fc4c75fd91c9601b5e697f94112f0f6482b (patch)
treeede5a6b2371803d0667625d0e0ecf1d6b9f85357 /drivers/input
parentf1782447125c167ca02babb9a2af3853895e411c (diff)
downloadop-kernel-dev-05be5fc4c75fd91c9601b5e697f94112f0f6482b.zip
op-kernel-dev-05be5fc4c75fd91c9601b5e697f94112f0f6482b.tar.gz
Input: ads7846 - fix uninitialized var warning
drivers/input/touchscreen/ads7846.c: In function 'ads7846_read12_ser': drivers/input/touchscreen/ads7846.c:216: warning: 'sample' may be used uninitialized in this function Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Jiri Kosina <jkosina@suse.cz> Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input')
-rw-r--r--drivers/input/touchscreen/ads7846.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/ads7846.c b/drivers/input/touchscreen/ads7846.c
index 58934a40..57a1c28 100644
--- a/drivers/input/touchscreen/ads7846.c
+++ b/drivers/input/touchscreen/ads7846.c
@@ -213,7 +213,7 @@ static int ads7846_read12_ser(struct device *dev, unsigned command)
struct ads7846 *ts = dev_get_drvdata(dev);
struct ser_req *req = kzalloc(sizeof *req, GFP_KERNEL);
int status;
- int sample;
+ int uninitialized_var(sample);
int use_internal;
if (!req)
OpenPOWER on IntegriCloud