Commit a938406b authored by Danny Kukawka's avatar Danny Kukawka Committed by Matthew Garrett

hdaps: trivial fix for -Wuninitialized

Trivial fix for some -Wuninitialized compiler warnings.
Signed-off-by: default avatarDanny Kukawka <danny.kukawka@bisect.de>
Signed-off-by: default avatarMatthew Garrett <mjg@redhat.com>
parent ca1469f5
......@@ -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