Clean unneeded TunSetOptions()

Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
Simon Rozman 2019-04-10 13:58:50 +02:00
parent 83d3e175d9
commit 6d230d616e

View File

@ -761,14 +761,6 @@ cleanup_complete_req:
return status; return status;
} }
static MINIPORT_SET_OPTIONS TunSetOptions;
_Use_decl_annotations_
static NDIS_STATUS TunSetOptions(NDIS_HANDLE NdisDriverHandle, NDIS_HANDLE DriverContext)
{
/* TODO: This handler is optional. See if it can be removed. */
return NDIS_STATUS_SUCCESS;
}
static MINIPORT_PAUSE TunPause; static MINIPORT_PAUSE TunPause;
_Use_decl_annotations_ _Use_decl_annotations_
static NDIS_STATUS TunPause(NDIS_HANDLE MiniportAdapterContext, PNDIS_MINIPORT_PAUSE_PARAMETERS MiniportPauseParameters) static NDIS_STATUS TunPause(NDIS_HANDLE MiniportAdapterContext, PNDIS_MINIPORT_PAUSE_PARAMETERS MiniportPauseParameters)
@ -1357,7 +1349,6 @@ NTSTATUS DriverEntry(DRIVER_OBJECT *DriverObject, UNICODE_STRING *RegistryPath)
.MajorDriverVersion = WINTUN_VERSION_MAJ, .MajorDriverVersion = WINTUN_VERSION_MAJ,
.MinorDriverVersion = WINTUN_VERSION_MIN, .MinorDriverVersion = WINTUN_VERSION_MIN,
.SetOptionsHandler = TunSetOptions,
.InitializeHandlerEx = TunInitializeEx, .InitializeHandlerEx = TunInitializeEx,
.HaltHandlerEx = TunHaltEx, .HaltHandlerEx = TunHaltEx,
.UnloadHandler = TunUnload, .UnloadHandler = TunUnload,