hdaps: fix for -Wuninitialized
authorDanny Kukawka <danny.kukawka@bisect.de>
Mon, 30 Jan 2012 19:40:49 +0000 (20:40 +0100)
committerJiri Kosina <jkosina@suse.cz>
Fri, 3 Feb 2012 22:19:47 +0000 (23:19 +0100)
Trivial fix for some -Wuninitialized compiler warnings.

Signed-off-by: Danny Kukawka <danny.kukawka@bisect.de>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/platform/x86/hdaps.c

index 5a34973dc16486aeb701cd5dd0e0cc59372a0eb5..ba68d4e7a779cbec42c15f6d8bfa08b85ff8e2b0 100644 (file)
@@ -379,7 +379,7 @@ static ssize_t hdaps_temp1_show(struct device *dev,
        int ret;
 
        ret = hdaps_readb_one(HDAPS_PORT_TEMP1, &temp);
-       if (ret < 0)
+       if (ret)
                return ret;
 
        return sprintf(buf, "%u\n", temp);
@@ -392,7 +392,7 @@ static ssize_t hdaps_temp2_show(struct device *dev,
        int ret;
 
        ret = hdaps_readb_one(HDAPS_PORT_TEMP2, &temp);
-       if (ret < 0)
+       if (ret)
                return ret;
 
        return sprintf(buf, "%u\n", temp);