projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca1469f
)
hdaps: trivial fix for -Wuninitialized
author
Danny Kukawka
<danny.kukawka@bisect.de>
Mon, 30 Jan 2012 22:00:11 +0000
(23:00 +0100)
committer
Matthew 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/platform/x86/hdaps.c
b/drivers/platform/x86/hdaps.c
index 2fdacc23cf7beff55f765ab5ef4b3ac76772843f..7387f97a294194b607115096510f2119d76902d0 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);