Author: fireball Date: Sun Sep 28 05:57:59 2008 New Revision: 36571
URL: http://svn.reactos.org/svn/reactos?rev=36571&view=rev Log: - It's meaningless to try to complete the IRP if irp == NULL. Fixes Coverity CID: 398
Modified: trunk/reactos/drivers/usb/nt4compat/usbdriver/dmgrdisp.c
Modified: trunk/reactos/drivers/usb/nt4compat/usbdriver/dmgrdisp.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/usb/nt4compat/usbdr... ============================================================================== --- trunk/reactos/drivers/usb/nt4compat/usbdriver/dmgrdisp.c [iso-8859-1] (original) +++ trunk/reactos/drivers/usb/nt4compat/usbdriver/dmgrdisp.c [iso-8859-1] Sun Sep 28 05:57:59 2008 @@ -144,7 +144,8 @@ ULONG ctrl_code; USE_NON_PENDING_IRQL;
- if (dev_mgr == NULL || irp == NULL) + ASSERT(irp); + if (dev_mgr == NULL) { EXIT_DISPATCH(STATUS_INVALID_PARAMETER, irp); }