mirror of
https://github.com/reactos/reactos.git
synced 2025-05-06 18:31:26 +00:00
Silence compiler warnings (5/11).
svn path=/trunk/; revision=37827
This commit is contained in:
parent
ebaf0cf88c
commit
620e4cad34
4 changed files with 13 additions and 14 deletions
|
@ -19,8 +19,8 @@ KSPIN_LOCK HalpSystemHardwareLock;
|
|||
|
||||
/* PRIVATE FUNCTIONS *********************************************************/
|
||||
|
||||
UCHAR
|
||||
FORCEINLINE
|
||||
UCHAR
|
||||
HalpReadCmos(IN UCHAR Reg)
|
||||
{
|
||||
/* Select the register */
|
||||
|
@ -30,8 +30,8 @@ HalpReadCmos(IN UCHAR Reg)
|
|||
return READ_PORT_UCHAR(CMOS_DATA_PORT);
|
||||
}
|
||||
|
||||
VOID
|
||||
FORCEINLINE
|
||||
VOID
|
||||
HalpWriteCmos(IN UCHAR Reg,
|
||||
IN UCHAR Value)
|
||||
{
|
||||
|
|
|
@ -1073,7 +1073,7 @@ HalAllocateAdapterChannel(
|
|||
{
|
||||
PADAPTER_OBJECT MasterAdapter;
|
||||
PGROW_WORK_ITEM WorkItem;
|
||||
ULONG Index = ~0;
|
||||
ULONG Index = ~0U;
|
||||
ULONG Result;
|
||||
KIRQL OldIrql;
|
||||
|
||||
|
@ -1129,7 +1129,7 @@ HalAllocateAdapterChannel(
|
|||
{
|
||||
Index = RtlFindClearBitsAndSet(
|
||||
MasterAdapter->MapRegisters, NumberOfMapRegisters, 0);
|
||||
if (Index != ~0)
|
||||
if (Index != ~0U)
|
||||
{
|
||||
AdapterObject->MapRegisterBase =
|
||||
MasterAdapter->MapRegisterBase + Index;
|
||||
|
@ -1143,7 +1143,7 @@ HalAllocateAdapterChannel(
|
|||
}
|
||||
}
|
||||
|
||||
if (Index == ~0)
|
||||
if (Index == ~0U)
|
||||
{
|
||||
WorkItem = ExAllocatePoolWithTag(
|
||||
NonPagedPool, sizeof(GROW_WORK_ITEM), TAG_DMA);
|
||||
|
@ -1287,7 +1287,7 @@ IoFreeAdapterChannel(
|
|||
Index = RtlFindClearBitsAndSet(
|
||||
MasterAdapter->MapRegisters,
|
||||
WaitContextBlock->NumberOfMapRegisters, 0);
|
||||
if (Index != ~0)
|
||||
if (Index != ~0U)
|
||||
{
|
||||
AdapterObject->MapRegisterBase =
|
||||
MasterAdapter->MapRegisterBase + Index;
|
||||
|
@ -1301,7 +1301,7 @@ IoFreeAdapterChannel(
|
|||
}
|
||||
}
|
||||
|
||||
if (Index == ~0)
|
||||
if (Index == ~0U)
|
||||
{
|
||||
InsertTailList(&MasterAdapter->AdapterQueue, &AdapterObject->AdapterQueue);
|
||||
KfReleaseSpinLock(&MasterAdapter->SpinLock, OldIrql);
|
||||
|
@ -1404,7 +1404,7 @@ IoFreeMapRegisters(
|
|||
MasterAdapter->MapRegisters,
|
||||
AdapterObject->NumberOfMapRegisters,
|
||||
MasterAdapter->NumberOfMapRegisters);
|
||||
if (Index == ~0)
|
||||
if (Index == ~0U)
|
||||
{
|
||||
InsertHeadList(&MasterAdapter->AdapterQueue, ListEntry);
|
||||
break;
|
||||
|
@ -1602,7 +1602,7 @@ IoFlushAdapterBuffers(
|
|||
{
|
||||
if ((ULONG_PTR)MapRegisterBase & MAP_BASE_SW_SG)
|
||||
{
|
||||
if (RealMapRegisterBase->Counter != ~0)
|
||||
if (RealMapRegisterBase->Counter != ~0U)
|
||||
{
|
||||
if (SlaveDma && !AdapterObject->IgnoreCount)
|
||||
Length -= HalReadDmaCounter(AdapterObject);
|
||||
|
@ -1984,13 +1984,12 @@ HalAllocateCrashDumpRegisters(IN PADAPTER_OBJECT AdapterObject,
|
|||
}
|
||||
|
||||
/* Try to find free map registers */
|
||||
MapRegisterNumber = -1;
|
||||
MapRegisterNumber = RtlFindClearBitsAndSet(MasterAdapter->MapRegisters,
|
||||
*NumberOfMapRegisters,
|
||||
0);
|
||||
|
||||
/* Check if nothing was found */
|
||||
if (MapRegisterNumber == -1)
|
||||
if (MapRegisterNumber == -1U)
|
||||
{
|
||||
/* No free registers found, so use the base registers */
|
||||
RtlSetBits(MasterAdapter->MapRegisters,
|
||||
|
|
|
@ -81,10 +81,10 @@ PCIPBUSDATA HalpFakePciBusData =
|
|||
HalpWritePCIConfig,
|
||||
NULL,
|
||||
NULL,
|
||||
{{{0}}},
|
||||
{{{0, 0, 0}}},
|
||||
{0, 0, 0, 0}
|
||||
},
|
||||
{{0}},
|
||||
{{0, 0}},
|
||||
32,
|
||||
};
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@ HalpReboot(VOID)
|
|||
{
|
||||
UCHAR Data;
|
||||
PVOID HalpZeroPageMapping;
|
||||
PHYSICAL_ADDRESS Null = {{0}};
|
||||
PHYSICAL_ADDRESS Null = {{0, 0}};
|
||||
|
||||
/* Enable warm reboot */
|
||||
HalpZeroPageMapping = MmMapIoSpace(Null, PAGE_SIZE, MmNonCached);
|
||||
|
|
Loading…
Reference in a new issue