Change in osmocom-bb[master]: Check for osmo_fsm_register() error return value

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Sun Dec 1 12:49:54 UTC 2019


laforge has submitted this change. ( https://gerrit.osmocom.org/c/osmocom-bb/+/16365 )

Change subject: Check for osmo_fsm_register() error return value
......................................................................

Check for osmo_fsm_register() error return value

Change-Id: I3e849b7ec8a7ed610f779dac57cc0c1d1aeb1aa5
---
M src/host/trxcon/trxcon.c
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved



diff --git a/src/host/trxcon/trxcon.c b/src/host/trxcon/trxcon.c
index d49b71f..ecee518 100644
--- a/src/host/trxcon/trxcon.c
+++ b/src/host/trxcon/trxcon.c
@@ -295,7 +295,7 @@
 	}
 
 	/* Allocate the application state machine */
-	osmo_fsm_register(&trxcon_fsm_def);
+	OSMO_ASSERT(osmo_fsm_register(&trxcon_fsm_def) == 0);
 	trxcon_fsm = osmo_fsm_inst_alloc(&trxcon_fsm_def, tall_trxcon_ctx,
 		NULL, LOGL_DEBUG, "main");
 

-- 
To view, visit https://gerrit.osmocom.org/c/osmocom-bb/+/16365
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmocom-bb
Gerrit-Branch: master
Gerrit-Change-Id: I3e849b7ec8a7ed610f779dac57cc0c1d1aeb1aa5
Gerrit-Change-Number: 16365
Gerrit-PatchSet: 2
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20191201/10472d88/attachment.htm>


More information about the gerrit-log mailing list