aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2019-07-21 09:26:20 +0200
committerHarald Welte <laforge@gnumonks.org>2019-07-21 09:26:56 +0200
commit7b7f2048b887c0228f5fc7b43bafe6a983f2c06c (patch)
treedee1d470b2f26db8aaee11a899f7541c4dc7d149
parent8bb790445852ee8c6846a3a48f455a28b6514c63 (diff)
bssgp: Fix dead code: PDUT_STATUS can never reach this part
Change-Id: Iae4332cd3b87f37164655d3df16554de4876159d Closes: CID#188855
-rw-r--r--src/gprs_bssgp_pcu.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gprs_bssgp_pcu.cpp b/src/gprs_bssgp_pcu.cpp
index a4a5875..b34659b 100644
--- a/src/gprs_bssgp_pcu.cpp
+++ b/src/gprs_bssgp_pcu.cpp
@@ -369,9 +369,7 @@ static int gprs_bssgp_pcu_rcvmsg(struct msgb *msg)
if (rc < 0) {
LOGP(DBSSGP, LOGL_ERROR, "Failed to parse BSSGP %s message. Invalid message was: %s\n",
bssgp_pdu_str(pdu_type), msgb_hexdump(msg));
- if (pdu_type != BSSGP_PDUT_STATUS)
- return bssgp_tx_status(BSSGP_CAUSE_INV_MAND_INF, NULL, msg);
- return rc;
+ return bssgp_tx_status(BSSGP_CAUSE_INV_MAND_INF, NULL, msg);
}
if (pdu_type == BSSGP_PDUT_BVC_RESET) {