diff mbox

[opensm] libvendor/osm_pkt_randomizer.c: Fix broken compilation with vendor sim

Message ID 51EDDA34.5090204@dev.mellanox.co.il (mailing list archive)
State Accepted
Delegated to: Hal Rosenstock
Headers show

Commit Message

Hal Rosenstock July 23, 2013, 1:19 a.m. UTC
Due to change in number of args to osm_dr_path_init.
   
Signed-off-by: Eitan Zahavi <eitan@mellanox.com>
Signed-off-by: Alex Netes <alexne@mellanox.com>
Signed-off-by: Hal Rosenstock <hal@mellanox.com>
---
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/libvendor/osm_pkt_randomizer.c b/libvendor/osm_pkt_randomizer.c
index cfc5a8f..5ea1f4a 100644
--- a/libvendor/osm_pkt_randomizer.c
+++ b/libvendor/osm_pkt_randomizer.c
@@ -234,8 +234,7 @@  osm_pkt_randomizer_mad_drop(IN osm_log_t * p_log,
 		/* This is a lid route mad. Don't drop it */
 		goto Exit;
 
-	osm_dr_path_init(&dr_path, 0,	/* The h_bind is not really important for us to save */
-			 p_smp->hop_count, p_smp->initial_path);
+	osm_dr_path_init(&dr_path, p_smp->hop_count, p_smp->initial_path);
 
 	if (__osm_pkt_randomizer_process_path
 	    (p_log, p_pkt_randomizer, &dr_path)) {