Commit 4087c471 authored by Danny Kukawka's avatar Danny Kukawka Committed by Jiri Kosina

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
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment