CRS SCell searcher: Minimal simplification

master
Xavier Arteaga 5 years ago committed by Xavier Arteaga
parent 9ee8cc0ad2
commit f8dcb8bf67

@ -48,8 +48,7 @@ void srslte_channel_hst_update_srate(srslte_channel_hst_t* q, uint32_t srate)
void srslte_channel_hst_execute(
srslte_channel_hst_t* q, cf_t* in, cf_t* out, uint32_t len, const srslte_timestamp_t* ts)
{
if (q) {
if (q->srate_hz) {
if (q && q->srate_hz) {
// Convert period from seconds to samples
uint64_t period_nsamples = (uint64_t)roundf(q->period_s * q->srate_hz);
@ -79,7 +78,6 @@ void srslte_channel_hst_execute(
srslte_vec_apply_cfo(in, -q->fs_hz / q->srate_hz, out, len);
}
}
}
void srslte_channel_hst_free(srslte_channel_hst_t* q)
{

Loading…
Cancel
Save