Message ID | 4E12F696.1080301@dev.mellanox.co.il (mailing list archive) |
---|---|
State | Accepted |
Headers | show |
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);
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@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