mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[DC21X4] Fix minor issues (#6161)
- The return value got lost when refactoring the setup function - The check against 0xFFFFFFFF was meant to reject an empty EEPROM image - Add missing PAGED_CODE(); macros CORE-8724
This commit is contained in:
parent
f7d612f3e3
commit
bbe6b07612
2 changed files with 6 additions and 2 deletions
|
@ -859,6 +859,8 @@ AddressRomChecksumValid(
|
|||
ULONG64 TestPatterm;
|
||||
ULONG Checksum, i;
|
||||
|
||||
PAGED_CODE();
|
||||
|
||||
NdisMoveMemory(&TestPatterm, &Octet[24], 8);
|
||||
if (TestPatterm != EAR_TEST_PATTERN)
|
||||
return FALSE;
|
||||
|
@ -886,6 +888,8 @@ SRomReadMacAddress(
|
|||
{
|
||||
ULONG MacOffset;
|
||||
|
||||
PAGED_CODE();
|
||||
|
||||
/* Check if we have a board with an old EAR format */
|
||||
if (NdisEqualMemory(SRom, &SRom[16], 8))
|
||||
{
|
||||
|
@ -912,7 +916,7 @@ SRomReadMacAddress(
|
|||
}
|
||||
|
||||
/* Sanity check */
|
||||
if (*(PULONG)SRom == 0xFFFFFFF || *(PULONG)SRom == 0)
|
||||
if (*(PULONG)SRom == 0xFFFFFFFF || *(PULONG)SRom == 0)
|
||||
return FALSE;
|
||||
|
||||
WARN("Legacy/unknown board found\n");
|
||||
|
|
|
@ -146,7 +146,7 @@ DcPowerUp(
|
|||
/* Re-initialize the chip to leave D3 state */
|
||||
if (Adapter->PrevPowerState == NdisDeviceStateD3)
|
||||
{
|
||||
NT_VERIFY(DcSetupAdapter(Adapter) == TRUE);
|
||||
NT_VERIFY(DcSetupAdapter(Adapter) == NDIS_STATUS_SUCCESS);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue