From d0c1e2981818b7cdf9ff42d3ace4e0f3b0581f9f Mon Sep 17 00:00:00 2001 From: Lekensteyn Date: Wed, 14 Dec 2011 19:14:27 +0100 Subject: [PATCH] bbswitch: Fix return value if a _DSM test failed --- bbswitch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bbswitch.c b/bbswitch.c index 99b09ab..017d1c7 100644 --- a/bbswitch.c +++ b/bbswitch.c @@ -129,7 +129,7 @@ static int has_dsm_func(const char muid[16], int revid, int sfnc) { // fail if the _DSM call failed 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 // the n-th bit is enabled, function n is supported