infiniband-diags/libibnetdisc/ibnetdisc.c: Remove compile warning
PATCH 1/1 infiniband-diags/libibnetdisc/ibnetdisc.c: Remove compile warning
src/ibnetdisc.c: In function 'ibnd_find_port_dr':src/ibnetdisc.c:676: warning: 'rc' may be used uninitialized in this function
---
libibnetdisc/src/ibnetdisc.c +1 -1
@@ -673,7 +673,7 @@ ibnd_port_t *ibnd_find_port_dr(ibnd_fabric_t * fabric, char *dr_str) {int i =0 ;ibnd_node_t *cur_node; -ibnd_port_t *rc; +ibnd_port_t *rc =NULL ;ib_dr_path_t path;if (!fabric) {
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): 4E398C2C.4020403-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org
Ira Weiny
AppliedQuoted 5 lines · On Wed, 3 Aug 2011 10:58:04 -0700 Hal Rosenstock…
src/ibnetdisc.c: In function 'ibnd_find_port_dr':src/ibnetdisc.c:676: warning: 'rc' may be used uninitialized in this function
Thanks applied,
Ira
Quoted 14 lines
---
libibnetdisc/src/ibnetdisc.c +1
-1@@ -673,7 +673,7 @@ ibnd_port_t *ibnd_find_port_dr(ibnd_fabric_t * fabric, char *dr_str) {int i =0 ;ibnd_node_t *cur_node; -ibnd_port_t *rc; +ibnd_port_t *rc =NULL ;ib_dr_path_t path;if (!fabric) {
Signature · 9 lines
Ira Weiny Math Programmer/Computer Scientist Lawrence Livermore National Lab 925-423-8008 [email protected] -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html