diff options
author | Andrej Rode <andrej.rode@ettus.com> | 2016-12-16 13:58:38 -0800 |
---|---|---|
committer | Martin Braun <martin.braun@ettus.com> | 2017-01-12 15:15:37 -0800 |
commit | 74c60887bda3763a3e1c3a619068721c2b027848 (patch) | |
tree | cfee2656540c83044174ddf8273d803bccbae258 | |
parent | 6d7692f393b9d1e5e75b8239a3249ee02e0441d9 (diff) | |
download | uhd-74c60887bda3763a3e1c3a619068721c2b027848.tar.gz uhd-74c60887bda3763a3e1c3a619068721c2b027848.tar.bz2 uhd-74c60887bda3763a3e1c3a619068721c2b027848.zip |
n230: fix coverity reports
-rw-r--r-- | host/lib/usrp/n230/n230_resource_manager.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/host/lib/usrp/n230/n230_resource_manager.cpp b/host/lib/usrp/n230/n230_resource_manager.cpp index 826db5ed2..b96de542a 100644 --- a/host/lib/usrp/n230/n230_resource_manager.cpp +++ b/host/lib/usrp/n230/n230_resource_manager.cpp @@ -487,10 +487,11 @@ bool n230_resource_manager::_radio_data_loopback_self_test(wb_iface::sptr iface) const uint32_t rb_tx = uint32_t(rb_word64 >> 32); const uint32_t rb_rx = uint32_t(rb_word64 & 0xffffffff); test_fail = word32 != rb_tx or word32 != rb_rx; - if (test_fail) + if (test_fail){ UHD_MSG(fastpath) << boost::format("mismatch (exp:%x, got:%x and %x)... ") % word32 % rb_tx % rb_rx; break; //exit loop on any failure } + } /* Zero out the idle data. */ iface->poke32(fpga::sr_addr(fpga::SR_RADIO_CODEC_IDLE), 0); |