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

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

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