diff mbox

[opensm] osm_mtree.c: Cosmetic change in osm_mtree_destroy

Message ID 52A8B296.8010401@dev.mellanox.co.il (mailing list archive)
State Accepted
Delegated to: Hal Rosenstock
Headers show

Commit Message

Hal Rosenstock Dec. 11, 2013, 6:44 p.m. UTC
From: Alex Netes <alexne@mellanox.com>

max_children defined to be less or equal to switch number of ports, so
uint8_t should be enough.

Signed-off-by: Alex Netes <alexne@mellanox.com>
Signed-off-by: Hal Rosenstock <hal@mellanox.com>
---
 opensm/osm_mtree.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff mbox

Patch

diff --git a/opensm/osm_mtree.c b/opensm/osm_mtree.c
index cb32276..218f557 100644
--- a/opensm/osm_mtree.c
+++ b/opensm/osm_mtree.c
@@ -83,7 +83,7 @@  osm_mtree_node_t *osm_mtree_node_new(IN osm_switch_t * p_sw)
 
 void osm_mtree_destroy(IN osm_mtree_node_t * p_mtn)
 {
-	uint32_t i;
+	uint8_t i;
 
 	if (p_mtn == NULL)
 		return;