[MERGED] osmo-bsc[master]: cosmetic: reorder case list

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/.

Harald Welte gerrit-no-reply at lists.osmocom.org
Sun Nov 12 14:22:47 UTC 2017


Harald Welte has submitted this change and it was merged.

Change subject: cosmetic: reorder case list
......................................................................


cosmetic: reorder case list

the switch statement in fsm_send_assignment_complete() has the
default case at the beginning.

Move the default case to the end to match common coding style
rules

Change-Id: I360842fe899b95972c44da3cb74a3dc51b379fdc
---
M src/osmo-bsc/osmo_bsc_mgcp.c
1 file changed, 2 insertions(+), 2 deletions(-)

Approvals:
  Harald Welte: Looks good to me, approved
  Jenkins Builder: Verified



diff --git a/src/osmo-bsc/osmo_bsc_mgcp.c b/src/osmo-bsc/osmo_bsc_mgcp.c
index a7b6b41..f4acc39 100644
--- a/src/osmo-bsc/osmo_bsc_mgcp.c
+++ b/src/osmo-bsc/osmo_bsc_mgcp.c
@@ -575,11 +575,11 @@
 		 get_value_string(fsm_bsc_mgcp_state_names, fi->state), get_value_string(fsm_evt_names, event));
 
 	switch (event) {
+	case EV_CRCX_NET_RESP:
+		break;
 	default:
 		handle_error(mgcp_ctx, MGCP_ERR_UNEXP_TEARDOWN);
 		return;
-	case EV_CRCX_NET_RESP:
-		break;
 	}
 
 	lchan = mgcp_ctx->lchan;

-- 
To view, visit https://gerrit.osmocom.org/4743
To unsubscribe, visit https://gerrit.osmocom.org/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I360842fe899b95972c44da3cb74a3dc51b379fdc
Gerrit-PatchSet: 2
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Owner: dexter <pmaier at sysmocom.de>
Gerrit-Reviewer: Harald Welte <laforge at gnumonks.org>
Gerrit-Reviewer: Jenkins Builder



More information about the gerrit-log mailing list