lapdm: fix memory leak due to unreachable code

detected by Smatch
This commit is contained in:
Harald Welte 2011-07-16 12:21:55 +02:00
parent f4d45ab021
commit 584427cd04
1 changed files with 0 additions and 1 deletions

View File

@ -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;
}