提交 a938406b 编写于 作者: D Danny Kukawka 提交者: Matthew Garrett

hdaps: trivial fix for -Wuninitialized

Trivial fix for some -Wuninitialized compiler warnings.
Signed-off-by: NDanny Kukawka <danny.kukawka@bisect.de>
Signed-off-by: NMatthew Garrett <mjg@redhat.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册