diff mbox

[03/10] validation: tm: add debug check to avoid unreachable code

Message ID 1464219423-14977-4-git-send-email-bill.fischofer@linaro.org
State Superseded
Headers show

Commit Message

Bill Fischofer May 25, 2016, 11:36 p.m. UTC
Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org>
---
 test/validation/traffic_mngr/traffic_mngr.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
diff mbox

Patch

diff --git a/test/validation/traffic_mngr/traffic_mngr.c b/test/validation/traffic_mngr/traffic_mngr.c
index e459d66..2bbcc1d 100644
--- a/test/validation/traffic_mngr/traffic_mngr.c
+++ b/test/validation/traffic_mngr/traffic_mngr.c
@@ -21,6 +21,8 @@ 
 #include "odp_cunit_common.h"
 #include "traffic_mngr.h"
 
+#define TM_DEBUG                 0
+
 #define MAX_CAPABILITIES         16
 #define MAX_NUM_IFACES           2
 #define MAX_TM_SYSTEMS           3
@@ -1674,7 +1676,9 @@  static void dump_tm_tree(uint32_t tm_idx)
 {
 	tm_node_desc_t *root_node_desc;
 
-	return;
+	if (!TM_DEBUG)
+		return;
+
 	root_node_desc = root_node_descs[tm_idx];
 	dump_tm_subtree(root_node_desc);
 }