mirror of
https://github.com/reactos/reactos.git
synced 2024-09-11 05:12:43 +00:00
some more msvc warning fixes
svn path=/trunk/; revision=23690
This commit is contained in:
parent
cd01646b34
commit
3dd85ba73d
|
@ -29,6 +29,8 @@ disp_urb_completion(PURB purb, PVOID context)
|
|||
NTSTATUS status;
|
||||
PDEVEXT_HEADER dev_hdr;
|
||||
|
||||
UNREFERENCED_PARAMETER(context);
|
||||
|
||||
if (purb == NULL)
|
||||
return;
|
||||
|
||||
|
|
|
@ -2272,6 +2272,9 @@ dev_mgr_event_select_driver(PUSB_DEV pdev, ULONG event, ULONG context, ULONG par
|
|||
|
||||
USE_BASIC_NON_PENDING_IRQL;
|
||||
|
||||
UNREFERENCED_PARAMETER(param);
|
||||
UNREFERENCED_PARAMETER(context);
|
||||
|
||||
usb_dbg_print(DBGLVL_MAXIMUM, ("dev_mgr_event_select_driver(): pdev=%p event=0x%x\n", pdev, event));
|
||||
|
||||
if (pdev == NULL)
|
||||
|
@ -3536,7 +3539,7 @@ irp_list_empty(PIRP_LIST irp_list)
|
|||
KIRQL old_irql;
|
||||
BOOLEAN ret;
|
||||
KeAcquireSpinLock(&irp_list->irp_list_lock, &old_irql);
|
||||
ret = (irp_list->irp_free_list_count == MAX_IRP_LIST_SIZE);
|
||||
ret = (BOOLEAN) (irp_list->irp_free_list_count == MAX_IRP_LIST_SIZE);
|
||||
KeReleaseSpinLock(&irp_list->irp_list_lock, old_irql);
|
||||
return ret;
|
||||
}
|
||||
|
@ -3547,7 +3550,7 @@ irp_list_full(PIRP_LIST irp_list)
|
|||
KIRQL old_irql;
|
||||
BOOLEAN ret;
|
||||
KeAcquireSpinLock(&irp_list->irp_list_lock, &old_irql);
|
||||
ret = (irp_list->irp_free_list_count == 0);
|
||||
ret = (BOOLEAN) (irp_list->irp_free_list_count == 0);
|
||||
KeReleaseSpinLock(&irp_list->irp_list_lock, old_irql);
|
||||
return ret;
|
||||
}
|
||||
|
|
|
@ -176,7 +176,7 @@ is_pool_empty(PUHCI_TD_POOL pool)
|
|||
if (pool == NULL)
|
||||
return FALSE;
|
||||
|
||||
return (pool->free_count == 0);
|
||||
return (BOOLEAN) (pool->free_count == 0);
|
||||
}
|
||||
|
||||
BOOLEAN
|
||||
|
|
|
@ -1527,6 +1527,7 @@ uhci_dpc_callback(PKDPC dpc, PVOID context, PVOID sysarg1, PVOID sysarg2)
|
|||
USE_BASIC_NON_PENDING_IRQL;
|
||||
|
||||
UNREFERENCED_PARAMETER(dpc);
|
||||
UNREFERENCED_PARAMETER(sysarg2);
|
||||
|
||||
uhci = (PUHCI_DEV) context;
|
||||
if (uhci == NULL)
|
||||
|
@ -3065,7 +3066,7 @@ uhci_cancel_urb(PUHCI_DEV uhci, PUSB_DEV pdev, PUSB_ENDPOINT pendp, PURB purb)
|
|||
|
||||
KeSynchronizeExecution(uhci->pdev_ext->uhci_int, uhci_sync_cancel_urb, &sync_param);
|
||||
|
||||
found = sync_param.ret;
|
||||
found = (BOOLEAN) sync_param.ret;
|
||||
|
||||
if (found)
|
||||
return USB_STATUS_CANCELING;
|
||||
|
|
Loading…
Reference in a new issue