[openib-general] [PATCH] OpenSM: Reorder assert in __osm_sm_mad_ctrl_send_err_cb

Hal Rosenstock halr at voltaire.com
Tue Nov 22 06:35:20 PST 2005


OpenSM: Reorder assert in __osm_sm_mad_ctrl_send_err_cb in
osm_sm_mad_ctrl.c

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

Index: osm_sm_mad_ctrl.c
===================================================================
--- osm_sm_mad_ctrl.c   (revision 4115)
+++ osm_sm_mad_ctrl.c   (working copy)
@@ -809,13 +809,13 @@ __osm_sm_mad_ctrl_send_err_cb(
 
   OSM_LOG_ENTER( p_ctrl->p_log, __osm_sm_mad_ctrl_send_err_cb );
 
+  CL_ASSERT( p_madw ); 
+
   osm_log( p_ctrl->p_log, OSM_LOG_ERROR,
            "__osm_sm_mad_ctrl_send_err_cb: ERR 3113: "
            "MAD completed in error (%s).\n",
            ib_get_err_str( p_madw->status ) );
 
-  CL_ASSERT( p_madw );
-
   /* 
      If this was a SubnSet MAD, then this error might indicate a problem
      in configuring the subnet. In this case - need to mark that there was





More information about the general mailing list