* [PATCH][TRIVIAL] opensm/osm_perfmgr.c: Eliminate compile warning
@ 2012-07-31 6:44 Hal Rosenstock
[not found] ` <50177EDB.70409-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
0 siblings, 1 reply; 2+ messages in thread
From: Hal Rosenstock @ 2012-07-31 6:44 UTC (permalink / raw)
To: Alex Netes
Cc: linux-rdma (linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org),
Ira Weiny
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-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
---
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)) {
--
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] 2+ messages in thread
end of thread, other threads:[~2012-08-01 20:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-31 6:44 [PATCH][TRIVIAL] opensm/osm_perfmgr.c: Eliminate compile warning Hal Rosenstock
[not found] ` <50177EDB.70409-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2012-08-01 20:16 ` Alex Netes
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).