[PATCH] 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/.

dexter gerrit-no-reply at lists.osmocom.org
Wed Nov 8 17:35:19 UTC 2017


Review at  https://gerrit.osmocom.org/4743

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(-)


  git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/43/4743/1

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: newchange
Gerrit-Change-Id: I360842fe899b95972c44da3cb74a3dc51b379fdc
Gerrit-PatchSet: 1
Gerrit-Project: osmo-bsc
Gerrit-Branch: master
Gerrit-Owner: dexter <pmaier at sysmocom.de>



More information about the gerrit-log mailing list