All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] opensm/osm_switch.c: Fix compile warnings
@ 2011-07-05 11:33 Hal Rosenstock
       [not found] ` <4E12F696.1080301-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Hal Rosenstock @ 2011-07-05 11:33 UTC (permalink / raw)
  To: Alex Netes; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA


osm_switch.c: In function 'osm_switch_recommend_path':
osm_switch.c:282: warning: 'found_node_guid' may be used uninitialized in this function
osm_switch.c:281: warning: 'found_sys_guid' may be used uninitialized in this function

Signed-off-by: Hal Rosenstock <hal-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
---
diff --git a/opensm/osm_switch.c b/opensm/osm_switch.c
index d921715..8fb84c3 100644
--- a/opensm/osm_switch.c
+++ b/opensm/osm_switch.c
@@ -278,8 +278,8 @@ uint8_t osm_switch_recommend_path(IN const osm_switch_t * p_sw,
 	unsigned int port_paths_count = 0;
 	uint8_t scatter_possible_ports[IB_NODE_NUM_PORTS_MAX];
 	unsigned int scatter_possible_ports_count = 0;
-	int found_sys_guid;
-	int found_node_guid;
+	int found_sys_guid = 0;
+	int found_node_guid = 0;
 
 	CL_ASSERT(lid_ho > 0);
 
--
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

* Re: [PATCH] opensm/osm_switch.c: Fix compile warnings
       [not found] ` <4E12F696.1080301-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
@ 2011-07-05 15:55   ` Alex Netes
  0 siblings, 0 replies; 2+ messages in thread
From: Alex Netes @ 2011-07-05 15:55 UTC (permalink / raw)
  To: Hal Rosenstock; +Cc: linux-rdma-u79uwXL29TY76Z2rM5mHXA

Hi Hal,

On 07:33 Tue 05 Jul     , Hal Rosenstock wrote:
> 
> osm_switch.c: In function 'osm_switch_recommend_path':
> osm_switch.c:282: warning: 'found_node_guid' may be used uninitialized in this function
> osm_switch.c:281: warning: 'found_sys_guid' may be used uninitialized in this function
> 
> Signed-off-by: Hal Rosenstock <hal-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
> ---

Applied, thanks.
--
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	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-07-05 15:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-07-05 11:33 [PATCH] opensm/osm_switch.c: Fix compile warnings Hal Rosenstock
     [not found] ` <4E12F696.1080301-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2011-07-05 15:55   ` Alex Netes

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.