mirror of
https://github.com/reactos/reactos.git
synced 2026-07-04 19:04:22 +08:00
- IoFlushAdapterBuffers: "AdapterObject" is not an optional parameter, it is vital to identify the DMA adapter. Remove the check which confused Coverity and ASSERTify this instead.
- Fix for Coverity error CID: 155 svn path=/trunk/; revision=36489
This commit is contained in:
@@ -1569,9 +1569,11 @@ IoFlushAdapterBuffers(
|
||||
PHYSICAL_ADDRESS PhysicalAddress;
|
||||
PPFN_NUMBER MdlPagesPtr;
|
||||
|
||||
/* Sanity checks */
|
||||
ASSERT_IRQL_LESS_OR_EQUAL(DISPATCH_LEVEL);
|
||||
ASSERT(AdapterObject);
|
||||
|
||||
if (AdapterObject != NULL && !AdapterObject->MasterDevice)
|
||||
if (!AdapterObject->MasterDevice)
|
||||
{
|
||||
/* Mask out (disable) the DMA channel. */
|
||||
if (AdapterObject->AdapterNumber == 1)
|
||||
|
||||
Reference in New Issue
Block a user