Skip to content
Snippets Groups Projects
Commit 4087c471 authored by Danny Kukawka's avatar Danny Kukawka Committed by Jiri Kosina
Browse files

hdaps: fix for -Wuninitialized


Trivial fix for some -Wuninitialized compiler warnings.

Signed-off-by: default avatarDanny Kukawka <danny.kukawka@bisect.de>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 382d19f1
No related branches found
No related tags found
No related merge requests found
...@@ -379,7 +379,7 @@ static ssize_t hdaps_temp1_show(struct device *dev, ...@@ -379,7 +379,7 @@ static ssize_t hdaps_temp1_show(struct device *dev,
int ret; int ret;
ret = hdaps_readb_one(HDAPS_PORT_TEMP1, &temp); ret = hdaps_readb_one(HDAPS_PORT_TEMP1, &temp);
if (ret < 0) if (ret)
return ret; return ret;
return sprintf(buf, "%u\n", temp); return sprintf(buf, "%u\n", temp);
...@@ -392,7 +392,7 @@ static ssize_t hdaps_temp2_show(struct device *dev, ...@@ -392,7 +392,7 @@ static ssize_t hdaps_temp2_show(struct device *dev,
int ret; int ret;
ret = hdaps_readb_one(HDAPS_PORT_TEMP2, &temp); ret = hdaps_readb_one(HDAPS_PORT_TEMP2, &temp);
if (ret < 0) if (ret)
return ret; return ret;
return sprintf(buf, "%u\n", temp); return sprintf(buf, "%u\n", temp);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment