aboutsummaryrefslogtreecommitdiffstats
path: root/src/osmo-bts-trx/trx_if.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/osmo-bts-trx/trx_if.c')
-rw-r--r--src/osmo-bts-trx/trx_if.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/osmo-bts-trx/trx_if.c b/src/osmo-bts-trx/trx_if.c
index 1332854d..7030e3c0 100644
--- a/src/osmo-bts-trx/trx_if.c
+++ b/src/osmo-bts-trx/trx_if.c
@@ -103,6 +103,8 @@ static int trx_clk_read_cb(struct osmo_fd *ofd, unsigned int what)
int len;
uint32_t fn;
+ OSMO_ASSERT(pinst);
+
len = recv(ofd->fd, buf, sizeof(buf) - 1, 0);
if (len <= 0)
return len;