diff options
author | Joe Perches <joe@perches.com> | 2015-03-30 10:43:20 -0700 |
---|---|---|
committer | Darren Hart <dvhart@linux.intel.com> | 2015-04-07 20:43:12 -0700 |
commit | 097c27fcb256415e7c1612e7ab916aa906874f9b (patch) | |
tree | 20f25aa33d3bbf5cfd4512eb1204c6d34dd6dcec | |
parent | 5d3fc1d54e5a020c087002dd8590ee21c17e3182 (diff) | |
download | op-kernel-dev-097c27fcb256415e7c1612e7ab916aa906874f9b.zip op-kernel-dev-097c27fcb256415e7c1612e7ab916aa906874f9b.tar.gz |
wmi: Use bool function return values of true/false not 1/0
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>
-rw-r--r-- | drivers/platform/x86/wmi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/platform/x86/wmi.c b/drivers/platform/x86/wmi.c index 26a0bd8..aac4757 100644 --- a/drivers/platform/x86/wmi.c +++ b/drivers/platform/x86/wmi.c @@ -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) |