[openib-general] [[PATCH] [TRIVIAL] OpenSM/libvendor: Move assert before variable is used

Hal Rosenstock halr at voltaire.com
Wed Nov 30 13:19:41 PST 2005


OpenSM/libvendor: Move assert before variable is used

Signed-off-by: Hal Rosenstock <halr at voltaire.com>

Index: osm_vendor_ibumad.c
===================================================================
--- osm_vendor_ibumad.c (revision 4265)
+++ osm_vendor_ibumad.c (working copy)
@@ -666,10 +666,11 @@ osm_vendor_open_port(
        int i = 0, umad_port_id = -1, found = 0;
        int ca, r;
 
+       CL_ASSERT( p_vend );
+
        OSM_LOG_ENTER( p_vend->p_log, osm_vendor_open_port );
 
        CL_ASSERT( port_guid );
-       CL_ASSERT( p_vend );
 
        if (p_vend->umad_port_id >= 0) {
                umad_port_id = p_vend->umad_port_id;





More information about the general mailing list