diff options
author | Danny Kukawka <danny.kukawka@bisect.de> | 2012-01-30 19:40:49 (GMT) |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2012-02-03 22:19:47 (GMT) |
commit | 4087c471e74064650a1f2eec79bcf97acbb99fb1 (patch) | |
tree | 4300a6bbc7c228c25d92d88b4f05d9f92f62c1ed /drivers | |
parent | 382d19f197f9870522a23d726ce857cd7bc572fe (diff) | |
download | linux-4087c471e74064650a1f2eec79bcf97acbb99fb1.tar.xz |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/platform/x86/hdaps.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/platform/x86/hdaps.c b/drivers/platform/x86/hdaps.c index 5a34973..ba68d4e 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); |