Change in osmo-bts[master]: osmo-bts-trx: fix: do not call trx_if_close() two times

fixeria gerrit-no-reply at lists.osmocom.org
Thu Mar 18 07:45:58 UTC 2021


fixeria has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bts/+/23398 )


Change subject: osmo-bts-trx: fix: do not call trx_if_close() two times
......................................................................

osmo-bts-trx: fix: do not call trx_if_close() two times

It's called by trx_phy_inst_open() if trx_if_open() fails.

Change-Id: Ic672f865ab513043a58979471a254a59d44daa6d
---
M src/osmo-bts-trx/trx_if.c
1 file changed, 2 insertions(+), 6 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/98/23398/1

diff --git a/src/osmo-bts-trx/trx_if.c b/src/osmo-bts-trx/trx_if.c
index 05167ca..c6701cb 100644
--- a/src/osmo-bts-trx/trx_if.c
+++ b/src/osmo-bts-trx/trx_if.c
@@ -1225,20 +1225,16 @@
 			  plink->u.osmotrx.remote_ip,
 			  compute_port(pinst, 1, 0), trx_ctrl_read_cb);
 	if (rc < 0)
-		goto err;
+		return rc;
 	rc = trx_udp_open(l1h, &l1h->trx_ofd_data,
 			  plink->u.osmotrx.local_ip,
 			  compute_port(pinst, 0, 1),
 			  plink->u.osmotrx.remote_ip,
 			  compute_port(pinst, 1, 1), trx_data_read_cb);
 	if (rc < 0)
-		goto err;
+		return rc;
 
 	return 0;
-
-err:
-	trx_if_close(l1h);
-	return rc;
 }
 
 /*! close the control + burst data sockets for one phy_instance */

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

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: Ic672f865ab513043a58979471a254a59d44daa6d
Gerrit-Change-Number: 23398
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <vyanitskiy at sysmocom.de>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210318/f0bdba60/attachment.htm>


More information about the gerrit-log mailing list