summaryrefslogtreecommitdiffstats
path: root/src/host/trxcon/trxcon.c
diff options
context:
space:
mode:
authorVadim Yanitskiy <axilirator@gmail.com>2019-01-17 11:12:00 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2019-01-17 11:12:00 +0700
commit030a6154a69be9353e68fc23cb1be2fff7673b70 (patch)
tree44881964cf0e04181cf875af86fab0c57aaa2a14 /src/host/trxcon/trxcon.c
parent382736448edd65fffc910489a464c63eed309922 (diff)
trxcon/l1ctl_link.c: refactor l1ctl_link_init()
The main changes are: - return pointer to the allocated l1ctl_link or NULL, - accept the talloc context as 'tall_ctx' argument. Change-Id: I7fe1bc306494ac692c182dcfd2a2d9412929194b
Diffstat (limited to 'src/host/trxcon/trxcon.c')
-rw-r--r--src/host/trxcon/trxcon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/host/trxcon/trxcon.c b/src/host/trxcon/trxcon.c
index 501d0c72..777138f6 100644
--- a/src/host/trxcon/trxcon.c
+++ b/src/host/trxcon/trxcon.c
@@ -279,8 +279,8 @@ int main(int argc, char **argv)
NULL, LOGL_DEBUG, "main");
/* Init L1CTL server */
- rc = l1ctl_link_init(&app_data.l1l, app_data.bind_socket);
- if (rc)
+ app_data.l1l = l1ctl_link_init(tall_trx_ctx, app_data.bind_socket);
+ if (app_data.l1l == NULL)
goto exit;
/* Init transceiver interface */