diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2016-06-09 16:34:36 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@google.com> | 2016-06-09 17:28:02 -0700 |
commit | 129a6fbe7648987b23a87d5d9c4fbf0780c528ed (patch) | |
tree | 3ab601925532d056c31907f0e3fbadeabb3f568f /drivers/staging/greybus/core.c | |
parent | greybus: bootrom: Compile as a separate module (diff) | |
download | linux-dev-129a6fbe7648987b23a87d5d9c4fbf0780c528ed.tar.xz linux-dev-129a6fbe7648987b23a87d5d9c4fbf0780c528ed.zip |
greybus: core: Make greybus_match_one_id() return bool
This routine always returns 0 or 1 and a return type of 'bool' suits it
the best. Update it.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
Diffstat (limited to 'drivers/staging/greybus/core.c')
-rw-r--r-- | drivers/staging/greybus/core.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/staging/greybus/core.c b/drivers/staging/greybus/core.c index 75bc6081d21a..a3837b2c8e89 100644 --- a/drivers/staging/greybus/core.c +++ b/drivers/staging/greybus/core.c @@ -31,22 +31,22 @@ int greybus_disabled(void) } EXPORT_SYMBOL_GPL(greybus_disabled); -static int greybus_match_one_id(struct gb_bundle *bundle, +static bool greybus_match_one_id(struct gb_bundle *bundle, const struct greybus_bundle_id *id) { if ((id->match_flags & GREYBUS_ID_MATCH_VENDOR) && (id->vendor != bundle->intf->vendor_id)) - return 0; + return false; if ((id->match_flags & GREYBUS_ID_MATCH_PRODUCT) && (id->product != bundle->intf->product_id)) - return 0; + return false; if ((id->match_flags & GREYBUS_ID_MATCH_CLASS) && (id->class != bundle->class)) - return 0; + return false; - return 1; + return true; } static const struct greybus_bundle_id * |