[ofa-general] [PATCH] opensm/osm_inform.c: Fix compile warning

Hal Rosenstock hal.rosenstock at gmail.com
Sun Jul 27 04:43:07 PDT 2008


opensm/osm_inform.c: Fix compile warning

osm_inform.c: In function `__osm_send_report':
osm_inform.c:319: warning: `status' might be used uninitialized in this function

Signed-off-by: Hal Rosenstock <hal.rosenstock at gmail.com>

diff --git a/opensm/opensm/osm_inform.c b/opensm/opensm/osm_inform.c
index c8c06b2..ca972a1 100644
--- a/opensm/opensm/osm_inform.c
+++ b/opensm/opensm/osm_inform.c
@@ -316,7 +316,7 @@ static ib_api_status_t __osm_send_report(IN osm_infr_t * p_i
        ib_mad_t *p_mad;
        ib_sa_mad_t *p_sa_mad;
        static atomic32_t trap_fwd_trans_id = 0x02DAB000;
-       ib_api_status_t status;
+       ib_api_status_t status = IB_SUCCESS;
        osm_log_t *p_log = p_infr_rec->sa->p_log;

        OSM_LOG_ENTER(p_log);



More information about the general mailing list