diff options
author | Harald Welte <laforge@gnumonks.org> | 2011-07-16 13:45:57 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2011-07-16 13:45:57 +0200 |
commit | f6b606f422a0d6824b5c55556b3d1d09bf65f99a (patch) | |
tree | 3702b30d2d6d9ffca46f0dab69541c36c7a81ece /openbsc/src/gprs | |
parent | cd367b959e91eb149013d2ef633fb348deb47f79 (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'
Diffstat (limited to 'openbsc/src/gprs')
-rw-r--r-- | openbsc/src/gprs/gprs_gmm.c | 2 |
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"); |