From bd937eb1617a2f2e0c9ed8575f55ac1c215b7ee3 Mon Sep 17 00:00:00 2001 From: kony <2312708932@qq.com> Date: Fri, 13 Feb 2026 18:19:54 +0800 Subject: [PATCH] Remove redundant return statement in freeMibTable function in winipcfg, simplifying the code and improving readability. --- winipcfg/zwinipcfg_windows.go | 4 ---- 1 file changed, 4 deletions(-) diff --git a/winipcfg/zwinipcfg_windows.go b/winipcfg/zwinipcfg_windows.go index 6f1c64d..7d8b6f9 100644 --- a/winipcfg/zwinipcfg_windows.go +++ b/winipcfg/zwinipcfg_windows.go @@ -155,7 +155,6 @@ func deleteUnicastIPAddressEntry(row *MibUnicastIPAddressRow) (ret error) { func freeMibTable(memory unsafe.Pointer) { syscall.SyscallN(procFreeMibTable.Addr(), uintptr(memory)) - return } func getAnycastIPAddressEntry(row *MibAnycastIPAddressRow) (ret error) { @@ -240,17 +239,14 @@ func getUnicastIPAddressTable(family AddressFamily, table **mibUnicastIPAddressT func initializeIPForwardEntry(route *MibIPforwardRow2) { syscall.SyscallN(procInitializeIpForwardEntry.Addr(), uintptr(unsafe.Pointer(route))) - return } func initializeIPInterfaceEntry(row *MibIPInterfaceRow) { syscall.SyscallN(procInitializeIpInterfaceEntry.Addr(), uintptr(unsafe.Pointer(row))) - return } func initializeUnicastIPAddressEntry(row *MibUnicastIPAddressRow) { syscall.SyscallN(procInitializeUnicastIpAddressEntry.Addr(), uintptr(unsafe.Pointer(row))) - return } func notifyIPInterfaceChange(family AddressFamily, callback uintptr, callerContext uintptr, initialNotification bool, notificationHandle *windows.Handle) (ret error) {