Neels Hofmeyr has submitted this change and it was merged. ( 
https://gerrit.osmocom.org/12025 )

Change subject: drop unused SUBSCR_CONN_E_INVALID
......................................................................

drop unused SUBSCR_CONN_E_INVALID

The idea to catch uninitialized vars was completely moot. We pass events by
constants anyway.

Change-Id: I6f3c964ee04fec9a96f385199fb3141ac8d672d4
---
M include/osmocom/msc/osmo_msc.h
M src/libmsc/subscr_conn.c
2 files changed, 0 insertions(+), 3 deletions(-)

Approvals:
  Vadim Yanitskiy: Looks good to me, but someone else must approve
  Pau Espin Pedrol: Looks good to me, approved



diff --git a/include/osmocom/msc/osmo_msc.h b/include/osmocom/msc/osmo_msc.h
index a757a99..ad81da5 100644
--- a/include/osmocom/msc/osmo_msc.h
+++ b/include/osmocom/msc/osmo_msc.h
@@ -12,8 +12,6 @@
 #define MSC_HLR_REMOTE_PORT_DEFAULT OSMO_GSUP_PORT

 enum subscr_conn_fsm_event {
-       /* Mark 0 as invalid to catch uninitialized vars */
-       SUBSCR_CONN_E_INVALID = 0,
        /* Accepted the initial Complete Layer 3 (starting to evaluate 
Authentication and Ciphering) */
        SUBSCR_CONN_E_COMPLETE_LAYER_3,
        /* Received Classmark Update, typically neede for Ciphering Mode 
Command */
diff --git a/src/libmsc/subscr_conn.c b/src/libmsc/subscr_conn.c
index e6fa7e1..78af274 100644
--- a/src/libmsc/subscr_conn.c
+++ b/src/libmsc/subscr_conn.c
@@ -43,7 +43,6 @@
 #define SUBSCR_CONN_TIMEOUT 5 /* seconds */

 static const struct value_string subscr_conn_fsm_event_names[] = {
-       OSMO_VALUE_STRING(SUBSCR_CONN_E_INVALID),
        OSMO_VALUE_STRING(SUBSCR_CONN_E_COMPLETE_LAYER_3),
        OSMO_VALUE_STRING(SUBSCR_CONN_E_CLASSMARK_UPDATE),
        OSMO_VALUE_STRING(SUBSCR_CONN_E_ACCEPTED),

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

Gerrit-Project: osmo-msc
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: I6f3c964ee04fec9a96f385199fb3141ac8d672d4
Gerrit-Change-Number: 12025
Gerrit-PatchSet: 7
Gerrit-Owner: Neels Hofmeyr <nhofm...@sysmocom.de>
Gerrit-Reviewer: Jenkins Builder (1000002)
Gerrit-Reviewer: Pau Espin Pedrol <pes...@sysmocom.de>
Gerrit-Reviewer: Vadim Yanitskiy <axilira...@gmail.com>

Reply via email to