]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
Input: ads7846 - fix uninitialized var warning
authorAndrew Morton <akpm@linux-foundation.org>
Mon, 10 Mar 2008 10:08:40 +0000 (03:08 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 14 Mar 2008 15:54:13 +0000 (11:54 -0400)
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>
drivers/input/touchscreen/ads7846.c

index 58934a40f5ce5ff90abfbe071327370598d0e631..57a1c28bf1226e0a37a904154bc3e540c4463db7 100644 (file)
@@ -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)