From c30d8be91930edd585a80a2f233e4ff6abeba8a2 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 21 Jul 2019 07:51:33 +0200 Subject: cbsp.c: Remove dead code Change-Id: I0888fbad0f9094ec1b31e2cceecfc9cd372399bd Closes: CID#202057 --- src/gsm/cbsp.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/gsm/cbsp.c b/src/gsm/cbsp.c index 23f68dee..84b92358 100644 --- a/src/gsm/cbsp.c +++ b/src/gsm/cbsp.c @@ -1391,10 +1391,8 @@ int osmo_cbsp_recv_buffered(void *ctx, int fd, struct msgb **rmsg, struct msgb * if (!msg) { msg = osmo_cbsp_msgb_alloc(ctx, __func__); - if (!msg) { + if (!msg) return -ENOMEM; - goto discard_msg; - } msg->l1h = msg->tail; } -- cgit v1.2.3