Skip to content

Commit

Permalink
fix: remove redundant code, see for details: golang/go#62683
Browse files Browse the repository at this point in the history
  • Loading branch information
wlynxg committed Sep 19, 2023
1 parent 5930626 commit aa9594d
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions interface_android.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,13 +180,6 @@ loop:
case syscall.RTM_NEWADDR:
ifam := (*syscall.IfAddrmsg)(unsafe.Pointer(&m.Data[0]))
if len(ift) != 0 || ifi.Index == int(ifam.Index) {
if len(ift) != 0 {
var err error
ifi, err = interfaceByIndex(ift, int(ifam.Index))
if err != nil {
return nil, err
}
}
attrs, err := syscall.ParseNetlinkRouteAttr(&m)
if err != nil {
return nil, os.NewSyscallError("parsenetlinkrouteattr", err)
Expand Down

0 comments on commit aa9594d

Please sign in to comment.