Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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);