Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 197552
b: refs/heads/master
c: 263f4a3
h: refs/heads/master
v: v3
  • Loading branch information
Henrique de Moraes Holschuh committed May 16, 2010
1 parent a589431 commit 5714dda
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 437e470c4ca818c97426afa3a67fbd7e34cffe00
refs/heads/master: 263f4a30e4f1dc5385650738c1dcf3728036ecc4
9 changes: 5 additions & 4 deletions trunk/drivers/platform/x86/thinkpad_acpi.c
Original file line number Diff line number Diff line change
Expand Up @@ -605,9 +605,10 @@ static int acpi_evalf(acpi_handle handle,

switch (res_type) {
case 'd': /* int */
if (res)
success = (status == AE_OK &&
out_obj.type == ACPI_TYPE_INTEGER);
if (success && res)
*(int *)res = out_obj.integer.value;
success = status == AE_OK && out_obj.type == ACPI_TYPE_INTEGER;
break;
case 'v': /* void */
success = status == AE_OK;
Expand All @@ -620,8 +621,8 @@ static int acpi_evalf(acpi_handle handle,
}

if (!success && !quiet)
printk(TPACPI_ERR "acpi_evalf(%s, %s, ...) failed: %d\n",
method, fmt0, status);
printk(TPACPI_ERR "acpi_evalf(%s, %s, ...) failed: %s\n",
method, fmt0, acpi_format_exception(status));

return success;
}
Expand Down

0 comments on commit 5714dda

Please sign in to comment.