From 207911bcde98dda058f551d4b22d0d25bec2bd95 Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Mon, 29 Jul 2019 20:25:44 +0200 Subject: usrp1: don't check for non-null underrun pointer The pointer can't never be null, so avoid checking it. Change-Id: I12e14641713a6494bc89570f02cecfc6f8fd4b5e --- Transceiver52M/device/usrp1/USRPDevice.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Transceiver52M/device/usrp1/USRPDevice.cpp b/Transceiver52M/device/usrp1/USRPDevice.cpp index af0b3de..63debee 100644 --- a/Transceiver52M/device/usrp1/USRPDevice.cpp +++ b/Transceiver52M/device/usrp1/USRPDevice.cpp @@ -377,7 +377,7 @@ int USRPDevice::readSamples(std::vector &bufs, int len, bool *overrun, return len; } - if (underrun) *underrun = false; + *underrun = false; uint32_t readBuf[2000]; @@ -427,7 +427,7 @@ int USRPDevice::readSamples(std::vector &bufs, int len, bool *overrun, continue; } if ((word0 >> 28) & 0x04) { - if (underrun) *underrun = true; + *underrun = true; LOGC(DDEV, DEBUG) << "UNDERRUN in TRX->USRP interface"; } if (RSSI) *RSSI = (word0 >> 21) & 0x3f; -- cgit v1.2.3