hdaps: trivial fix for -Wuninitialized
authorDanny Kukawka <danny.kukawka@bisect.de>
Mon, 30 Jan 2012 22:00:11 +0000 (23:00 +0100)
committerMatthew Garrett <mjg@redhat.com>
Tue, 20 Mar 2012 16:02:25 +0000 (12:02 -0400)
Trivial fix for some -Wuninitialized compiler warnings.

Signed-off-by: Danny Kukawka <danny.kukawka@bisect.de>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/hdaps.c

index 2fdacc23cf7beff55f765ab5ef4b3ac76772843f..7387f97a294194b607115096510f2119d76902d0 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);