From eb889d740d5f08be49cab06dc98f9ceba391baf8 Mon Sep 17 00:00:00 2001 From: Alejandro Leal Conejos Date: Wed, 27 Oct 2021 12:51:47 +0200 Subject: [PATCH] Fixes coverity 369513 --- srsue/src/phy/sync.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srsue/src/phy/sync.cc b/srsue/src/phy/sync.cc index 270bf03ce..c0c468f47 100644 --- a/srsue/src/phy/sync.cc +++ b/srsue/src/phy/sync.cc @@ -979,7 +979,7 @@ int sync::radio_recv_fnc(srsran::rf_buffer_t& data, srsran_timestamp_t* rx_time) } // Execute channel DL emulator - if (channel_emulator and rx_time) { + if (channel_emulator) { channel_emulator->set_srate((uint32_t)srate.get_srate()); channel_emulator->run(data.to_cf_t(), data.to_cf_t(), data.get_nof_samples(), *rx_time); }