sys: static analysis fixes

This commit is contained in:
Bill Zissimopoulos
2015-11-28 00:01:39 -08:00
parent 97c98ac265
commit d7e9a25d37
14 changed files with 70 additions and 80 deletions

View File

@ -14,10 +14,8 @@ DRIVER_UNLOAD FspUnload;
#pragma alloc_text(PAGE, FspUnload)
#endif
NTSTATUS
DriverEntry(
_In_ PDRIVER_OBJECT DriverObject,
_In_ PUNICODE_STRING RegistryPath)
NTSTATUS DriverEntry(
PDRIVER_OBJECT DriverObject, PUNICODE_STRING RegistryPath)
{
FSP_ENTER();
@ -117,6 +115,7 @@ DriverEntry(
FspFastIoDispatch.ReleaseForModWrite = FspReleaseForModWrite;
FspFastIoDispatch.AcquireForCcFlush = FspAcquireForCcFlush;
FspFastIoDispatch.ReleaseForCcFlush = FspReleaseForCcFlush;
#pragma prefast(suppress:28175, "We are a filesystem: ok to touch FastIoDispatch")
DriverObject->FastIoDispatch = &FspFastIoDispatch;
/* register our device objects as file systems */
@ -127,9 +126,8 @@ DriverEntry(
&DriverObject->DriverName, RegistryPath);
}
VOID
FspUnload(
_In_ PDRIVER_OBJECT DriverObject)
VOID FspUnload(
PDRIVER_OBJECT DriverObject)
{
FSP_ENTER_VOID(PAGED_CODE());