diff options
author | Harald Welte <laforge@gnumonks.org> | 2012-09-07 12:03:40 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2012-09-07 12:03:40 +0200 |
commit | 5b3bffb74c4adfb16d3945b8094487b8990854ca (patch) | |
tree | 11ac01642e26af71ba9aa93a037bba919a20566c /src/gb | |
parent | ca0af8a3a862d5189915c02c2bc85461a3b33415 (diff) |
BSSGP: fix unused variable compiler warnings
Diffstat (limited to 'src/gb')
-rw-r--r-- | src/gb/gprs_bssgp.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/gb/gprs_bssgp.c b/src/gb/gprs_bssgp.c index 83588197..142e69b8 100644 --- a/src/gb/gprs_bssgp.c +++ b/src/gb/gprs_bssgp.c @@ -237,7 +237,6 @@ static int bssgp_rx_bvc_reset(struct msgb *msg, struct tlv_parsed *tp, struct bssgp_bvc_ctx *bctx; uint16_t nsei = msgb_nsei(msg); uint16_t bvci; - int rc; bvci = ntohs(*(uint16_t *)TLVP_VAL(tp, BSSGP_IE_BVCI)); DEBUGP(DBSSGP, "BSSGP BVCI=%u Rx RESET cause=%s\n", bvci, @@ -278,8 +277,8 @@ static int bssgp_rx_bvc_reset(struct msgb *msg, struct tlv_parsed *tp, bssgp_prim_cb(&nmp.oph, NULL); /* Acknowledge the RESET to the BTS */ - rc = bssgp_tx_simple_bvci(BSSGP_PDUT_BVC_RESET_ACK, - nsei, bvci, ns_bvci); + bssgp_tx_simple_bvci(BSSGP_PDUT_BVC_RESET_ACK, + nsei, bvci, ns_bvci); return 0; } @@ -397,8 +396,6 @@ static int bssgp_rx_suspend(struct msgb *msg, struct tlv_parsed *tp, struct bssgp_bvc_ctx *ctx) { struct osmo_bssgp_prim gbp; - struct bssgp_normal_hdr *bgph = - (struct bssgp_normal_hdr *) msgb_bssgph(msg); struct gprs_ra_id raid; uint32_t tlli; int rc; @@ -439,8 +436,6 @@ static int bssgp_rx_resume(struct msgb *msg, struct tlv_parsed *tp, struct bssgp_bvc_ctx *ctx) { struct osmo_bssgp_prim gbp; - struct bssgp_normal_hdr *bgph = - (struct bssgp_normal_hdr *) msgb_bssgph(msg); struct gprs_ra_id raid; uint32_t tlli; uint8_t suspend_ref; @@ -627,7 +622,6 @@ static int bssgp_rx_sign(struct msgb *msg, struct tlv_parsed *tp, uint8_t pdu_type = bgph->pdu_type; int rc = 0; uint16_t ns_bvci = msgb_bvci(msg); - uint16_t bvci; switch (bgph->pdu_type) { case BSSGP_PDUT_SUSPEND: |