[VIDEOPRT] IntVideoPortCreateAdapterDeviceObject(): 1+1 trivial fixes

Detected by Cppcheck: funcArgOrderDifferent, redundantAssignment.
This commit is contained in:
Serge Gautherie 2020-06-08 22:45:45 +02:00 committed by Thomas Faber
parent cac13bcd7f
commit fb023adf5a
No known key found for this signature in database
GPG key ID: 076E7C3D44720826
2 changed files with 8 additions and 9 deletions

View file

@ -90,10 +90,10 @@ IntVideoPortDeferredRoutine(
NTSTATUS
NTAPI
IntVideoPortCreateAdapterDeviceObject(
IN PDRIVER_OBJECT DriverObject,
IN PVIDEO_PORT_DRIVER_EXTENSION DriverExtension,
IN PDEVICE_OBJECT PhysicalDeviceObject,
OUT PDEVICE_OBJECT *DeviceObject OPTIONAL)
_In_ PDRIVER_OBJECT DriverObject,
_In_ PVIDEO_PORT_DRIVER_EXTENSION DriverExtension,
_In_opt_ PDEVICE_OBJECT PhysicalDeviceObject,
_Out_opt_ PDEVICE_OBJECT *DeviceObject)
{
PVIDEO_PORT_DEVICE_EXTENSION DeviceExtension;
ULONG DeviceNumber;
@ -1046,7 +1046,6 @@ VideoPortScanRom(
StringLength = strlen((PCHAR)String);
Found = FALSE;
SearchLocation = RomBase;
for (SearchLocation = RomBase;
!Found && SearchLocation < RomBase + RomLength - StringLength;
SearchLocation++)

View file

@ -257,10 +257,10 @@ IntDetachFromCSRSS(PKPROCESS *CallingProcess, PKAPC_STATE ApcState);
NTSTATUS NTAPI
IntVideoPortCreateAdapterDeviceObject(
IN PDRIVER_OBJECT DriverObject,
IN PVIDEO_PORT_DRIVER_EXTENSION DriverExtension,
IN PDEVICE_OBJECT PhysicalDeviceObject OPTIONAL,
OUT PDEVICE_OBJECT *DeviceObject OPTIONAL);
_In_ PDRIVER_OBJECT DriverObject,
_In_ PVIDEO_PORT_DRIVER_EXTENSION DriverExtension,
_In_opt_ PDEVICE_OBJECT PhysicalDeviceObject,
_Out_opt_ PDEVICE_OBJECT *DeviceObject);
NTSTATUS NTAPI
IntVideoPortFindAdapter(