summaryrefslogtreecommitdiffstats
path: root/src/gsm/cbsp.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gsm/cbsp.c')
-rw-r--r--src/gsm/cbsp.c4
1 files changed, 1 insertions, 3 deletions
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;
}