summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanny Kukawka <danny.kukawka@bisect.de>2012-01-30 20:40:49 +0100
committerJiri Kosina <jkosina@suse.cz>2012-02-03 23:19:47 +0100
commit4087c471e74064650a1f2eec79bcf97acbb99fb1 (patch)
tree4300a6bbc7c228c25d92d88b4f05d9f92f62c1ed
parentmedia: Fix typo in mixer_drv.c and hdmi_drv.c (diff)
downloadlinux-4087c471e74064650a1f2eec79bcf97acbb99fb1.tar.xz
linux-4087c471e74064650a1f2eec79bcf97acbb99fb1.zip
hdaps: fix for -Wuninitialized
Trivial fix for some -Wuninitialized compiler warnings. Signed-off-by: Danny Kukawka <danny.kukawka@bisect.de> Signed-off-by: Jiri Kosina <jkosina@suse.cz>
-rw-r--r--drivers/platform/x86/hdaps.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/platform/x86/hdaps.c b/drivers/platform/x86/hdaps.c
index 5a34973dc164..ba68d4e7a779 100644
--- a/drivers/platform/x86/hdaps.c
+++ b/drivers/platform/x86/hdaps.c
@@ -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);