From 74c60887bda3763a3e1c3a619068721c2b027848 Mon Sep 17 00:00:00 2001 From: Andrej Rode Date: Fri, 16 Dec 2016 13:58:38 -0800 Subject: n230: fix coverity reports --- host/lib/usrp/n230/n230_resource_manager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'host/lib') 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); -- cgit v1.2.3