From db6f803eb06b2227faa157b55f571633bf645558 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Sun, 7 Jan 2018 18:13:09 +0100 Subject: gprs_gmm: Remove unused variable MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/gprs/gprs_gmm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gprs/gprs_gmm.c b/src/gprs/gprs_gmm.c index ead958eea..9c2d548f8 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; -- cgit v1.2.3