mboxd: Clean up dbus objects
Change-Id: I24328c8fca02b004b0297ecc2f2a0320bfb23d9b
Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
diff --git a/control.c b/control.c
index 8c122ac..39099d3 100644
--- a/control.c
+++ b/control.c
@@ -82,7 +82,7 @@
if (context->state & STATE_SUSPENDED) {
/* Already Suspended */
- return DBUS_SUCCESS;
+ return 0;
}
/* Nothing to check - Just set the bit to notify the host */
@@ -102,7 +102,7 @@
if (!(context->state & STATE_SUSPENDED)) {
/* We weren't suspended... */
- return DBUS_SUCCESS;
+ return 0;
}
if (modified) {
@@ -112,9 +112,8 @@
/* Clear the bit and send the BMC Event to the host */
rc = clr_bmc_events(context, BMC_EVENT_FLASH_CTRL_LOST, SET_BMC_EVENT);
-
if (rc < 0) {
- rc = -E_DBUS_HARDWARE;
+ return rc;
}
context->state &= ~STATE_SUSPENDED;