* [PATCH 0/7] drivers: Use bool function return values true/false not 1/0
@ 2015-03-30 17:43 Joe Perches
2015-03-30 17:43 ` [PATCH 4/7] wmi: Use bool function return values of " Joe Perches
0 siblings, 1 reply; 3+ messages in thread
From: Joe Perches @ 2015-03-30 17:43 UTC (permalink / raw)
To: linux-kernel, dm-devel, linux-raid, platform-driver-x86, netdev,
linux-pm, linux-serial
Cc: dri-devel
Joe Perches (7):
drm: Use bool function return values of true/false not 1/0
dm_table: Use bool function return values of true/false not 1/0
genwqe: Use bool function return values of true/false not 1/0
wmi: Use bool function return values of true/false not 1/0
ssb: Use bool function return values of true/false not 1/0
thermal: Use bool function return values of true/false not 1/0
serial: kgdb_nmi: Use bool function return values of true/false not
1/0
drivers/gpu/drm/ast/ast_post.c | 2 +-
drivers/gpu/drm/vmwgfx/vmwgfx_fence.c | 2 +-
drivers/md/dm-table.c | 20 ++++++++++----------
drivers/misc/genwqe/card_base.h | 2 +-
drivers/platform/x86/wmi.c | 4 ++--
drivers/ssb/driver_gige.c | 2 +-
drivers/thermal/thermal_core.h | 2 +-
drivers/tty/serial/kgdb_nmi.c | 6 +++---
8 files changed, 20 insertions(+), 20 deletions(-)
--
2.1.2
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 4/7] wmi: Use bool function return values of true/false not 1/0
2015-03-30 17:43 [PATCH 0/7] drivers: Use bool function return values true/false not 1/0 Joe Perches
@ 2015-03-30 17:43 ` Joe Perches
2015-04-02 5:17 ` Darren Hart
0 siblings, 1 reply; 3+ messages in thread
From: Joe Perches @ 2015-03-30 17:43 UTC (permalink / raw)
To: linux-kernel, Darren Hart; +Cc: platform-driver-x86
Use the normal return values for bool functions
Signed-off-by: Joe Perches <joe@perches.com>
---
drivers/platform/x86/wmi.c | 4 ++--
1 file 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)
--
2.1.2
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 4/7] wmi: Use bool function return values of true/false not 1/0
2015-03-30 17:43 ` [PATCH 4/7] wmi: Use bool function return values of " Joe Perches
@ 2015-04-02 5:17 ` Darren Hart
0 siblings, 0 replies; 3+ messages in thread
From: Darren Hart @ 2015-04-02 5:17 UTC (permalink / raw)
To: Joe Perches; +Cc: linux-kernel, platform-driver-x86
On Mon, Mar 30, 2015 at 10:43:20AM -0700, Joe Perches wrote:
> Use the normal return values for bool functions
>
> Signed-off-by: Joe Perches <joe@perches.com>
Queued, thank you Joe.
--
Darren Hart
Intel Open Source Technology Center
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-04-02 5:17 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-30 17:43 [PATCH 0/7] drivers: Use bool function return values true/false not 1/0 Joe Perches
2015-03-30 17:43 ` [PATCH 4/7] wmi: Use bool function return values of " Joe Perches
2015-04-02 5:17 ` Darren Hart
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox