Change in ...libosmocore[master]: cbsp.c: Remove dead code

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Sun Jul 21 06:00:07 UTC 2019


laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/libosmocore/+/14847


Change subject: cbsp.c: Remove dead code
......................................................................

cbsp.c: Remove dead code

Change-Id: I0888fbad0f9094ec1b31e2cceecfc9cd372399bd
Closes: CID#202057
---
M src/gsm/cbsp.c
1 file changed, 1 insertion(+), 3 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/libosmocore refs/changes/47/14847/1

diff --git a/src/gsm/cbsp.c b/src/gsm/cbsp.c
index 23f68de..84b9235 100644
--- a/src/gsm/cbsp.c
+++ b/src/gsm/cbsp.c
@@ -1391,10 +1391,8 @@
 
 	if (!msg) {
 		msg = osmo_cbsp_msgb_alloc(ctx, __func__);
-		if (!msg) {
+		if (!msg)
 			return -ENOMEM;
-			goto discard_msg;
-		}
 		msg->l1h = msg->tail;
 	}
 

-- 
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/14847
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I0888fbad0f9094ec1b31e2cceecfc9cd372399bd
Gerrit-Change-Number: 14847
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at gnumonks.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190721/18f3b162/attachment.htm>


More information about the gerrit-log mailing list