From aeac77dce6335395309ad236adb1627b389a1d86 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Mart=C3=AD?= Date: Tue, 7 Mar 2017 13:09:05 +0000 Subject: [PATCH] net: remove unused Interface parameter Found by github.com/mvdan/unparam. Change-Id: I4795dd0221784d10cf7c9f7b84ea00787d5789f2 Reviewed-on: https://go-review.googlesource.com/37892 Reviewed-by: Ian Lance Taylor Run-TryBot: Ian Lance Taylor TryBot-Result: Gobot Gobot --- src/net/interface_linux.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/net/interface_linux.go b/src/net/interface_linux.go index 5e391b28b0..441ab2f880 100644 --- a/src/net/interface_linux.go +++ b/src/net/interface_linux.go @@ -162,7 +162,7 @@ loop: if err != nil { return nil, os.NewSyscallError("parsenetlinkrouteattr", err) } - ifa := newAddr(ifi, ifam, attrs) + ifa := newAddr(ifam, attrs) if ifa != nil { ifat = append(ifat, ifa) } @@ -172,7 +172,7 @@ loop: return ifat, nil } -func newAddr(ifi *Interface, ifam *syscall.IfAddrmsg, attrs []syscall.NetlinkRouteAttr) Addr { +func newAddr(ifam *syscall.IfAddrmsg, attrs []syscall.NetlinkRouteAttr) Addr { var ipPointToPoint bool // Seems like we need to make sure whether the IP interface // stack consists of IP point-to-point numbered or unnumbered -- 2.48.1