[ofw] [Patch] [Core/al] Remove useless ASSERT

Hefty, Sean sean.hefty at intel.com
Thu Apr 29 07:59:18 PDT 2010


>Index: D:/windows/MLNX_VPI_trunk/core/al/user/ual_cm_cep.c
>===================================================================
>--- D:/windows/MLNX_VPI_trunk/core/al/user/ual_cm_cep.c (revision 5850)
>+++ D:/windows/MLNX_VPI_trunk/core/al/user/ual_cm_cep.c (revision 5851)
>@@ -382,9 +382,13 @@
>  DWORD  bytes_ret;
>
>  AL_ENTER( AL_DBG_CM );
>+
>+#if DBG
>+ if ( !h_al) {
>+  AL_PRINT(TRACE_LEVEL_ERROR ,AL_DBG_ERROR , ("h_al == NULL, probably because
>qp creation was failed.\n") );
>+ }
>+#endif
>
>- CL_ASSERT( h_al );
>-

Please just remove the assert and not add #if DBG print to complicate the code.



More information about the ofw mailing list