aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2011-07-16 13:45:57 +0200
committerHarald Welte <laforge@gnumonks.org>2011-07-16 13:45:57 +0200
commitf6b606f422a0d6824b5c55556b3d1d09bf65f99a (patch)
tree3702b30d2d6d9ffca46f0dab69541c36c7a81ece
parentcd367b959e91eb149013d2ef633fb348deb47f79 (diff)
gprs_gmm: ctx cannot be null, so remove check
Detected by Smatch: /home/laforge/projects/git/openbsc/openbsc/src/gprs/gprs_gmm.c +757 gsm48_rx_gmm_att_req(133) warn: variable dereferenced before check 'ctx'
-rw-r--r--openbsc/src/gprs/gprs_gmm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/openbsc/src/gprs/gprs_gmm.c b/openbsc/src/gprs/gprs_gmm.c
index 46c49318f..7eff33f5f 100644
--- a/openbsc/src/gprs/gprs_gmm.c
+++ b/openbsc/src/gprs/gprs_gmm.c
@@ -754,7 +754,7 @@ static int gsm48_rx_gmm_att_req(struct sgsn_mm_ctx *ctx, struct msgb *msg,
GPRS_ALGO_GEA0, NULL);
DEBUGPC(DMM, "\n");
- return ctx ? gsm48_gmm_authorize(ctx, GMM_T3350_MODE_ATT) : 0;
+ return gsm48_gmm_authorize(ctx, GMM_T3350_MODE_ATT);
err_inval:
DEBUGPC(DMM, "\n");