core: Propagate binding start-up errors in mctp_register_bus()
It's feasible the binding could fail to initialise in some fashion, so
make sure the caller becomes aware.
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Change-Id: If0b0a883c1c6f2004d6bc7b7420cd93d6a6d8fe2
diff --git a/core.c b/core.c
index d3f8184..a46a733 100644
--- a/core.c
+++ b/core.c
@@ -284,7 +284,7 @@
mctp->route_policy = ROUTE_ENDPOINT;
if (binding->start)
- binding->start(binding);
+ return binding->start(binding);
return 0;
}