[ofa-general] [PATCH] opensm: fix uninitialized return value in osm_sm_mcgrp_leave()
Sasha Khapyorsky
sashak at voltaire.com
Thu Sep 17 11:04:19 PDT 2009
Fix uninitialized return value in osm_sm_mcgrp_leave() function.
Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---
opensm/opensm/osm_sm.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/opensm/opensm/osm_sm.c b/opensm/opensm/osm_sm.c
index e446c9d..f3fa7f4 100644
--- a/opensm/opensm/osm_sm.c
+++ b/opensm/opensm/osm_sm.c
@@ -516,7 +516,7 @@ ib_api_status_t osm_sm_mcgrp_leave(IN osm_sm_t * p_sm, IN osm_mgrp_t *mgrp,
IN const ib_net64_t port_guid)
{
osm_port_t *p_port;
- ib_api_status_t status;
+ ib_api_status_t status = IB_SUCCESS;
OSM_LOG_ENTER(p_sm->p_log);
--
1.6.5.rc1
More information about the general
mailing list