diff options
author | Danny Kukawka <danny.kukawka@bisect.de> | 2012-01-30 14:40:49 -0500 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2012-02-03 17:19:47 -0500 |
commit | 4087c471e74064650a1f2eec79bcf97acbb99fb1 (patch) | |
tree | 4300a6bbc7c228c25d92d88b4f05d9f92f62c1ed /drivers/platform | |
parent | 382d19f197f9870522a23d726ce857cd7bc572fe (diff) |
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/platform')
-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 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, | |||
379 | int ret; | 379 | int ret; |
380 | 380 | ||
381 | ret = hdaps_readb_one(HDAPS_PORT_TEMP1, &temp); | 381 | ret = hdaps_readb_one(HDAPS_PORT_TEMP1, &temp); |
382 | if (ret < 0) | 382 | if (ret) |
383 | return ret; | 383 | return ret; |
384 | 384 | ||
385 | return sprintf(buf, "%u\n", temp); | 385 | return sprintf(buf, "%u\n", temp); |
@@ -392,7 +392,7 @@ static ssize_t hdaps_temp2_show(struct device *dev, | |||
392 | int ret; | 392 | int ret; |
393 | 393 | ||
394 | ret = hdaps_readb_one(HDAPS_PORT_TEMP2, &temp); | 394 | ret = hdaps_readb_one(HDAPS_PORT_TEMP2, &temp); |
395 | if (ret < 0) | 395 | if (ret) |
396 | return ret; | 396 | return ret; |
397 | 397 | ||
398 | return sprintf(buf, "%u\n", temp); | 398 | return sprintf(buf, "%u\n", temp); |