usrp1: don't check for non-null underrun pointer

The pointer can't never be null, so avoid checking it.

Change-Id: I12e14641713a6494bc89570f02cecfc6f8fd4b5e
This commit is contained in:
Pau Espin 2019-07-29 20:25:44 +02:00
parent 2c673e0f3e
commit 207911bcde
1 changed files with 2 additions and 2 deletions

View File

@ -377,7 +377,7 @@ int USRPDevice::readSamples(std::vector<short *> &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<short *> &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;