Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Joe Perches and committed by
Darren Hart
097c27fc 5d3fc1d5

+2 -2
+2 -2
drivers/platform/x86/wmi.c
··· 239 239 if (memcmp(block->guid, guid_input, 16) == 0) { 240 240 if (out) 241 241 *out = wblock; 242 - return 1; 242 + return true; 243 243 } 244 244 } 245 - return 0; 245 + return false; 246 246 } 247 247 248 248 static acpi_status wmi_method_enable(struct wmi_block *wblock, int enable)