public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH opensm] osmtest.c: Fixed missing assignment of return value from function osmtest_get_port_rec_by_num
@ 2014-05-05 13:31 Hal Rosenstock
  0 siblings, 0 replies; only message in thread
From: Hal Rosenstock @ 2014-05-05 13:31 UTC (permalink / raw)
  To: linux-rdma (linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org)
  Cc: Tomer Cohen

From: Tomer Cohen <tomerco-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
Date: Sun, 4 May 2014 11:38:01 +0300

found by Coverity

Signed-off-by: Tomer Cohen <tomerco-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
Signed-off-by: Hal Rosenstock <hal-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
---
 osmtest/osmtest.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/osmtest/osmtest.c b/osmtest/osmtest.c
index 857df86..d7aef60 100644
--- a/osmtest/osmtest.c
+++ b/osmtest/osmtest.c
@@ -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));
-- 
1.7.8.2

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2014-05-05 13:31 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-05 13:31 [PATCH opensm] osmtest.c: Fixed missing assignment of return value from function osmtest_get_port_rec_by_num Hal Rosenstock

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox