pespin has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-sgsn/+/30860 )


Change subject: Remove unused function gprs_parse_mi_tmsi()
......................................................................

Remove unused function gprs_parse_mi_tmsi()

Change-Id: I6fb7688bf54c7ae3ca3e06bf3a1b729fa62d82f9
---
M include/osmocom/sgsn/gprs_utils.h
M src/gprs/gprs_utils.c
2 files changed, 0 insertions(+), 14 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-sgsn refs/changes/60/30860/1

diff --git a/include/osmocom/sgsn/gprs_utils.h 
b/include/osmocom/sgsn/gprs_utils.h
index c05aca6..8a6731f 100644
--- a/include/osmocom/sgsn/gprs_utils.h
+++ b/include/osmocom/sgsn/gprs_utils.h
@@ -36,7 +36,6 @@

 int gprs_is_mi_tmsi(const uint8_t *value, size_t value_len);
 int gprs_is_mi_imsi(const uint8_t *value, size_t value_len);
-int gprs_parse_mi_tmsi(const uint8_t *value, size_t value_len, uint32_t *tmsi);
 void gprs_parse_tmsi(const uint8_t *value, uint32_t *tmsi);

 int gprs_ra_id_equals(const struct gprs_ra_id *id1, const struct gprs_ra_id 
*id2);
diff --git a/src/gprs/gprs_utils.c b/src/gprs/gprs_utils.c
index 3eac330..9fddc73 100644
--- a/src/gprs/gprs_utils.c
+++ b/src/gprs/gprs_utils.c
@@ -116,19 +116,6 @@
        return 1;
 }

-int gprs_parse_mi_tmsi(const uint8_t *value, size_t value_len, uint32_t *tmsi)
-{
-       uint32_t tmsi_be;
-
-       if (!gprs_is_mi_tmsi(value, value_len))
-               return 0;
-
-       memcpy(&tmsi_be, value + 1, sizeof(tmsi_be));
-
-       *tmsi = ntohl(tmsi_be);
-       return 1;
-}
-
 void gprs_parse_tmsi(const uint8_t *value, uint32_t *tmsi)
 {
        uint32_t tmsi_be;

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

Gerrit-Project: osmo-sgsn
Gerrit-Branch: master
Gerrit-Change-Id: I6fb7688bf54c7ae3ca3e06bf3a1b729fa62d82f9
Gerrit-Change-Number: 30860
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <[email protected]>
Gerrit-MessageType: newchange

Reply via email to