From 6d230d616e2befc978e2728a7e532ed00c3a6c5c Mon Sep 17 00:00:00 2001 From: Simon Rozman Date: Wed, 10 Apr 2019 13:58:50 +0200 Subject: [PATCH] Clean unneeded TunSetOptions() Signed-off-by: Simon Rozman --- wintun.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/wintun.c b/wintun.c index 8b43cf2..01618ba 100644 --- a/wintun.c +++ b/wintun.c @@ -761,14 +761,6 @@ cleanup_complete_req: 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; _Use_decl_annotations_ 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, .MinorDriverVersion = WINTUN_VERSION_MIN, - .SetOptionsHandler = TunSetOptions, .InitializeHandlerEx = TunInitializeEx, .HaltHandlerEx = TunHaltEx, .UnloadHandler = TunUnload,