diff mbox

[TRIVIAL] opensm/osm_perfmgr.c: Eliminate compile warning

Message ID 50177EDB.70409@dev.mellanox.co.il (mailing list archive)
State Accepted
Delegated to: Alex Netes
Headers show

Commit Message

Hal Rosenstock July 31, 2012, 6:44 a.m. UTC
osm_perfmgr_db.c: In function perfmgr_db_delete_inactive:
osm_perfmgr_db.c:218: warning: guid_list may be used uninitialized in this function

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

Comments

Alex Netes Aug. 1, 2012, 8:16 p.m. UTC | #1
Hi Hal,

On 02:44 Tue 31 Jul     , Hal Rosenstock wrote:
> 
> osm_perfmgr_db.c: In function perfmgr_db_delete_inactive:
> osm_perfmgr_db.c:218: warning: guid_list may be used uninitialized in this function
> 
> Signed-off-by: Hal Rosenstock <hal@mellanox.com>
> ---

Applied, thanks.
--
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/opensm/osm_perfmgr_db.c b/opensm/osm_perfmgr_db.c
index fdf3660..98b587d 100644
--- a/opensm/osm_perfmgr_db.c
+++ b/opensm/osm_perfmgr_db.c
@@ -215,7 +215,7 @@  perfmgr_db_delete_inactive(perfmgr_db_t * db, unsigned *cnt)
 	perfmgr_db_err_t rc = PERFMGR_EVENT_DB_SUCCESS;
 	int i = 0;
 	int num = 0;
-	uint64_t * guid_list;
+	uint64_t * guid_list = NULL;
 	cl_map_item_t * p_map_item = cl_qmap_head(&db->pc_data);
 
 	if (p_map_item == cl_qmap_end(&db->pc_data)) {