Skip to contentSkip to conversation

osmtest.c: Fixed missing assignment of return value from function osmtest_get_port_rec_by_num

PATCH New Hal Rosenstock 1 participant 1 message May 5, 2014 InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 osmtest.c: Fixed missing assignment of return value from function osmtest_get_port_rec_by_num

From: Tomer Cohen <tomerco-VPRAkNaXOzVWk0Htik3J/[email protected]>
Date: Sun, 4 May 2014 11:38:01 +0300

found by Coverity

---
 osmtest/osmtest.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
osmtest/osmtest.c +3 -3
index 857df86..d7aef60 100644
@@ -5097,9 +5097,9 @@ osmtest_validate_single_port_rec_lid(IN osmtest_t * const p_osmt,
 	memset(&context, 0, sizeof(context));
 
 	context.p_osmt = p_osmt;
-	osmtest_get_port_rec_by_num(p_osmt,
-				    p_port->rec.lid,
-				    p_port->rec.port_num, &context);
+	status = osmtest_get_port_rec_by_num(p_osmt,
+					     p_port->rec.lid,
+					     p_port->rec.port_num, &context);
 	if (status != IB_SUCCESS) {
 		OSM_LOG(&p_osmt->log, OSM_LOG_ERROR, "ERR 0108: "
 			"ib_query failed (%s)\n", ib_get_err_str(status));
Signature · 6 lines
1.7.8.2

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html