Skip to content

Commit

Permalink
wmi: Use bool function return values of true/false not 1/0
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Joe Perches authored and Darren Hart committed Apr 8, 2015
1 parent 5d3fc1d commit 097c27f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/platform/x86/wmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 097c27f

Please sign in to comment.