Skip to content

Commit

Permalink
hdaps: trivial fix for -Wuninitialized
Browse files Browse the repository at this point in the history
Trivial fix for some -Wuninitialized compiler warnings.

Signed-off-by: Danny Kukawka <danny.kukawka@bisect.de>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
  • Loading branch information
Danny Kukawka authored and Matthew Garrett committed Mar 20, 2012
1 parent ca1469f commit a938406
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/platform/x86/hdaps.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down

0 comments on commit a938406

Please sign in to comment.