projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
382d19f
)
hdaps: fix for -Wuninitialized
author
Danny Kukawka
<danny.kukawka@bisect.de>
Mon, 30 Jan 2012 19:40:49 +0000
(20:40 +0100)
committer
Jiri 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/platform/x86/hdaps.c
b/drivers/platform/x86/hdaps.c
index 5a34973dc16486aeb701cd5dd0e0cc59372a0eb5..ba68d4e7a779cbec42c15f6d8bfa08b85ff8e2b0 100644
(file)
--- 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);