aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2018-01-07 18:13:09 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2018-01-07 18:13:12 +0100
commitdb6f803eb06b2227faa157b55f571633bf645558 (patch)
treebed4f9ec7dd4cff5fda7b6b085743fe2b916bd83
parent76d2c8b2681859d58eaa3e83379625a6a80d8ea4 (diff)
gprs_gmm: Remove unused variable
Fixes following compilation warning: osmo-sgsn/src/gprs/gprs_gmm.c: In function ‘gsm48_rx_gmm_service_req’: osmo-sgsn/src/gprs/gprs_gmm.c:1786:10: warning: variable ‘ciph_seq_nr’ set but not used [-Wunused-but-set-variable] uint8_t ciph_seq_nr, service_type, mi_len, mi_type; ^~~~~~~~~~~ Change-Id: If0819026a99f45df96ee6de26a71c16128e79cb8
-rw-r--r--src/gprs/gprs_gmm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gprs/gprs_gmm.c b/src/gprs/gprs_gmm.c
index ead958ee..9c2d548f 100644
--- a/src/gprs/gprs_gmm.c
+++ b/src/gprs/gprs_gmm.c
@@ -1783,7 +1783,7 @@ static int gsm48_rx_gmm_service_req(struct sgsn_mm_ctx *ctx, struct msgb *msg)
{
struct gsm48_hdr *gh = (struct gsm48_hdr *) msgb_gmmh(msg);
uint8_t *cur = gh->data, *mi;
- uint8_t ciph_seq_nr, service_type, mi_len, mi_type;
+ uint8_t service_type, mi_len, mi_type;
uint32_t tmsi;
struct tlv_parsed tp;
char mi_string[GSM48_MI_SIZE];
@@ -1799,7 +1799,7 @@ static int gsm48_rx_gmm_service_req(struct sgsn_mm_ctx *ctx, struct msgb *msg)
}
/* Skip Ciphering key sequence number 10.5.1.2 */
- ciph_seq_nr = *cur & 0x07;
+ /* uint8_t ciph_seq_nr = *cur & 0x07; */
/* Service type 10.5.5.20 */
service_type = (*cur++ >> 4) & 0x07;