bbswitch: Fix return value if a _DSM test failed
This commit is contained in:
parent
5c51e06ab8
commit
d0c1e29818
@ -129,7 +129,7 @@ static int has_dsm_func(const char muid[16], int revid, int sfnc) {
|
|||||||
|
|
||||||
// fail if the _DSM call failed
|
// fail if the _DSM call failed
|
||||||
if (!acpi_call_dsm(dis_handle, muid, revid, 0, 0, &result))
|
if (!acpi_call_dsm(dis_handle, muid, revid, 0, 0, &result))
|
||||||
return 1;
|
return 0;
|
||||||
|
|
||||||
// ACPI Spec v4 9.14.1: if bit 0 is zero, no function is supported. If
|
// ACPI Spec v4 9.14.1: if bit 0 is zero, no function is supported. If
|
||||||
// the n-th bit is enabled, function n is supported
|
// the n-th bit is enabled, function n is supported
|
||||||
|
Loading…
x
Reference in New Issue
Block a user