{\r
h_pnp = p_adapter->h_pnp;\r
p_adapter->h_pnp = NULL;\r
- status = p_adapter->p_ifc->dereg_pnp( h_pnp, __ipoib_pnp_dereg );\r
\r
// Wait until NDIS will return all indicated NBLs that were received\r
// Avoid shutting the shutter twice\r
("[%I64u] ipoib_state was IPOIB_RUNNING and IPOIB_RESET_OR_DOWN flag was set \n", cl_get_time_stamp()) );\r
}\r
KeReleaseInStackQueuedSpinLock( &hdl );\r
+ status = p_adapter->p_ifc->dereg_pnp( h_pnp, __ipoib_pnp_dereg );\r
\r
if( status == IB_SUCCESS )\r
+ {\r
status = IB_NOT_DONE;\r
+ }\r
}\r
else\r
{\r
status = __ipoib_pnp_reg( p_adapter, IB_PNP_FLAG_REG_COMPLETE );\r
- if( status == IB_SUCCESS )\r
- p_adapter->hung = FALSE;\r
- }\r
- if (status == IB_NOT_DONE) {\r
- p_adapter->reset = TRUE;\r
}\r
- else {\r
+ \r
+ if ( status != IB_NOT_DONE ) \r
+ {\r
//do not call to __ipoib_complete_reset, because we return completion status directly from here\r
p_adapter->reset = FALSE; \r
\r