projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5d3fc1d
)
wmi: Use bool function return values of true/false not 1/0
author
Joe Perches
<joe@perches.com>
Mon, 30 Mar 2015 17:43:20 +0000
(10:43 -0700)
committer
Darren 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
patch
|
blob
|
history
diff --git
a/drivers/platform/x86/wmi.c
b/drivers/platform/x86/wmi.c
index 26a0bd893b86826663b22835c940b17dc1a7e80d..aac47573f9ed83e4c42ea84aef9c3940644e4db1 100644
(file)
--- 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)