wmi: Use bool function return values of true/false not 1/0
authorJoe Perches <joe@perches.com>
Mon, 30 Mar 2015 17:43:20 +0000 (10:43 -0700)
committerDarren Hart <dvhart@linux.intel.com>
Wed, 8 Apr 2015 03:43:12 +0000 (20:43 -0700)
Use the normal return values for bool functions

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Darren Hart <dvhart@linux.intel.com>
drivers/platform/x86/wmi.c

index 26a0bd8..aac4757 100644 (file)
@@ -239,10 +239,10 @@ static bool find_guid(const char *guid_string, struct wmi_block **out)
                if (memcmp(block->guid, guid_input, 16) == 0) {
                        if (out)
                                *out = wblock;
-                       return 1;
+                       return true;
                }
        }
-       return 0;
+       return false;
 }
 
 static acpi_status wmi_method_enable(struct wmi_block *wblock, int enable)