mirror of
https://github.com/torvalds/linux.git
synced 2024-11-11 22:51:42 +00:00
hdaps: trivial fix for -Wuninitialized
Trivial fix for some -Wuninitialized compiler warnings. Signed-off-by: Danny Kukawka <danny.kukawka@bisect.de> Signed-off-by: Matthew Garrett <mjg@redhat.com>
This commit is contained in:
parent
ca1469f5f1
commit
a938406b76
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user