Fix error check not checking for BT_COMPONENT_STATUS_OK
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 25 Feb 2016 17:29:11 +0000 (12:29 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Sat, 27 May 2017 16:57:26 +0000 (12:57 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
lib/plugin-system/component.c

index 5b424cd848bf85725cbc7963f59d2304d8a0c7ef..4144d5d4df90733bc275a04a5efa71b84fa72ffa 100644 (file)
@@ -133,7 +133,7 @@ struct bt_component *bt_component_create(
 
        component_class->init(component, params);
        ret = component_validation_funcs[type](component);
-       if (ret) {
+       if (ret != BT_COMPONENT_STATUS_OK) {
                BT_PUT(component);
                goto end;
        }
This page took 0.024771 seconds and 4 git commands to generate.