mirror of
https://github.com/reactos/reactos.git
synced 2025-08-07 00:43:09 +00:00
[DRIVERS]
Fix a few MSVC warnings svn path=/trunk/; revision=66269
This commit is contained in:
parent
2566611f13
commit
279e2f65b3
4 changed files with 16 additions and 14 deletions
|
@ -352,7 +352,8 @@ int acpi_device_sleep_wake(struct acpi_device *dev,
|
||||||
*/
|
*/
|
||||||
int acpi_enable_wakeup_device_power(struct acpi_device *dev, int sleep_state)
|
int acpi_enable_wakeup_device_power(struct acpi_device *dev, int sleep_state)
|
||||||
{
|
{
|
||||||
int i, err = 0;
|
unsigned int i;
|
||||||
|
int err = 0;
|
||||||
|
|
||||||
if (!dev || !dev->wakeup.flags.valid)
|
if (!dev || !dev->wakeup.flags.valid)
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -396,7 +397,8 @@ int acpi_enable_wakeup_device_power(struct acpi_device *dev, int sleep_state)
|
||||||
*/
|
*/
|
||||||
int acpi_disable_wakeup_device_power(struct acpi_device *dev)
|
int acpi_disable_wakeup_device_power(struct acpi_device *dev)
|
||||||
{
|
{
|
||||||
int i, err = 0;
|
unsigned int i;
|
||||||
|
int err = 0;
|
||||||
|
|
||||||
if (!dev || !dev->wakeup.flags.valid)
|
if (!dev || !dev->wakeup.flags.valid)
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -486,7 +488,7 @@ acpi_power_transition (
|
||||||
int result = 0;
|
int result = 0;
|
||||||
struct acpi_handle_list *cl = NULL; /* Current Resources */
|
struct acpi_handle_list *cl = NULL; /* Current Resources */
|
||||||
struct acpi_handle_list *tl = NULL; /* Target Resources */
|
struct acpi_handle_list *tl = NULL; /* Target Resources */
|
||||||
int i = 0;
|
unsigned int i = 0;
|
||||||
|
|
||||||
if (!device || (state < ACPI_STATE_D0) || (state > ACPI_STATE_D3))
|
if (!device || (state < ACPI_STATE_D0) || (state > ACPI_STATE_D3))
|
||||||
return_VALUE(-1);
|
return_VALUE(-1);
|
||||||
|
|
|
@ -210,7 +210,7 @@ DeviceStatusChangeThread(
|
||||||
PHUB_DEVICE_EXTENSION HubDeviceExtension;
|
PHUB_DEVICE_EXTENSION HubDeviceExtension;
|
||||||
PWORK_ITEM_DATA WorkItemData;
|
PWORK_ITEM_DATA WorkItemData;
|
||||||
PORT_STATUS_CHANGE PortStatus;
|
PORT_STATUS_CHANGE PortStatus;
|
||||||
LONG PortId;
|
ULONG PortId;
|
||||||
BOOLEAN SignalResetComplete = FALSE;
|
BOOLEAN SignalResetComplete = FALSE;
|
||||||
|
|
||||||
DPRINT("Entered DeviceStatusChangeThread, Context %x\n", Context);
|
DPRINT("Entered DeviceStatusChangeThread, Context %x\n", Context);
|
||||||
|
|
|
@ -307,7 +307,7 @@ USBHUB_PdoHandleInternalDeviceControl(
|
||||||
case IOCTL_INTERNAL_USB_GET_PORT_STATUS:
|
case IOCTL_INTERNAL_USB_GET_PORT_STATUS:
|
||||||
{
|
{
|
||||||
PORT_STATUS_CHANGE PortStatus;
|
PORT_STATUS_CHANGE PortStatus;
|
||||||
LONG PortId;
|
ULONG PortId;
|
||||||
PUCHAR PortStatusBits;
|
PUCHAR PortStatusBits;
|
||||||
|
|
||||||
PortStatusBits = (PUCHAR)Stack->Parameters.Others.Argument1;
|
PortStatusBits = (PUCHAR)Stack->Parameters.Others.Argument1;
|
||||||
|
|
|
@ -40,7 +40,7 @@ USBSTOR_FdoHandleDeviceRelations(
|
||||||
IN OUT PIRP Irp)
|
IN OUT PIRP Irp)
|
||||||
{
|
{
|
||||||
ULONG DeviceCount = 0;
|
ULONG DeviceCount = 0;
|
||||||
ULONG Index;
|
LONG Index;
|
||||||
PDEVICE_RELATIONS DeviceRelations;
|
PDEVICE_RELATIONS DeviceRelations;
|
||||||
PIO_STACK_LOCATION IoStack;
|
PIO_STACK_LOCATION IoStack;
|
||||||
|
|
||||||
|
@ -63,7 +63,7 @@ USBSTOR_FdoHandleDeviceRelations(
|
||||||
//
|
//
|
||||||
// go through array and count device objects
|
// go through array and count device objects
|
||||||
//
|
//
|
||||||
for(Index = 0; Index < max(DeviceExtension->MaxLUN, 1); Index++)
|
for (Index = 0; Index < max(DeviceExtension->MaxLUN, 1); Index++)
|
||||||
{
|
{
|
||||||
if (DeviceExtension->ChildPDO[Index])
|
if (DeviceExtension->ChildPDO[Index])
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue