From: Joe Perches Date: Mon, 30 Mar 2015 17:43:20 +0000 (-0700) Subject: wmi: Use bool function return values of true/false not 1/0 X-Git-Tag: v4.1-rc1~10^2~6 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=097c27fcb256415e7c1612e7ab916aa906874f9b;p=linux.git 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 Signed-off-by: Darren Hart --- diff --git a/drivers/platform/x86/wmi.c b/drivers/platform/x86/wmi.c index 26a0bd893b86..aac47573f9ed 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)