From 8593b386167e285b467d1a8b4feb3842f83dd211 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Mon, 15 Mar 2021 18:12:39 +0100 Subject: [PATCH] bts-trx: Drop duplicate set of last_clk_ind These fields are always aready set by the only caller of the function trx_setup_clock(), so there's no use in re-setting them. Change-Id: Id8a7141984e07eb11abae08e0c63ae7ebc333511 --- src/osmo-bts-trx/scheduler_trx.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/osmo-bts-trx/scheduler_trx.c b/src/osmo-bts-trx/scheduler_trx.c index bf0650d53..6e54d43d3 100644 --- a/src/osmo-bts-trx/scheduler_trx.c +++ b/src/osmo-bts-trx/scheduler_trx.c @@ -378,8 +378,6 @@ static int trx_setup_clock(struct gsm_bts *bts, struct osmo_trx_clock_state *tcs osmo_timerfd_schedule(&tcs->fn_timer_ofd, NULL, interval); tcs->last_fn_timer.tv = *tv_now; - tcs->last_clk_ind.tv = *tv_now; - tcs->last_clk_ind.fn = fn; return 0; }