diff options
author | Harald Welte <laforge@gnumonks.org> | 2011-07-16 12:21:55 +0200 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2011-07-16 12:21:55 +0200 |
commit | 584427cd04fe03aafdf31c4c295ace306a8ea03d (patch) | |
tree | 8cc60de9283cbb52b22670e4d4ed7062908a0449 | |
parent | f4d45ab0213c61c72942986f60a39b1f01ca42e8 (diff) |
lapdm: fix memory leak due to unreachable code
detected by Smatch
-rw-r--r-- | src/gsm/lapdm.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/gsm/lapdm.c b/src/gsm/lapdm.c index e496461e..470a5b2a 100644 --- a/src/gsm/lapdm.c +++ b/src/gsm/lapdm.c @@ -1635,7 +1635,6 @@ static int l2_ph_data_ind(struct msgb *msg, struct lapdm_entity *le, uint8_t cha if (!mctx.dl) { LOGP(DLLAPDM, LOGL_NOTICE, "Received frame for unsupported " "SAPI %d!\n", sapi); - return -EINVAL; msgb_free(msg); return -EIO; } |