[IBAL] a fix to accept any successful return code in ASSERTs (mostly, to facilitate...
authorleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Thu, 13 Jul 2006 15:22:05 +0000 (15:22 +0000)
committerleonidk <leonidk@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Thu, 13 Jul 2006 15:22:05 +0000 (15:22 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@423 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

core/complib/kernel/cl_pnp_po.c

index 11586e7..c48169e 100644 (file)
@@ -544,7 +544,7 @@ __cancel_stop(
 \r
        /* Call the device specific handler. */\r
        status = p_ext->vfptr_pnp_po->pfn_cancel_stop( p_dev_obj, p_irp, p_action );\r
-       ASSERT( status == STATUS_SUCCESS );\r
+       ASSERT( NT_SUCCESS(status) );\r
 \r
        /* \r
         * If we were never stopped (a higher level driver failed the \r
@@ -718,7 +718,7 @@ __cancel_remove(
 \r
        status = \r
                p_ext->vfptr_pnp_po->pfn_cancel_remove( p_dev_obj, p_irp, p_action );\r
-       ASSERT( status == STATUS_SUCCESS );\r
+       ASSERT( NT_SUCCESS(status) );\r
 \r
        if( p_ext->pnp_state != RemovePending )\r
        {\r