aboutsummaryrefslogtreecommitdiffstats
path: root/tun_freebsd.go
diff options
context:
space:
mode:
Diffstat (limited to 'tun_freebsd.go')
-rw-r--r--tun_freebsd.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/tun_freebsd.go b/tun_freebsd.go
index f738c7f..80d5909 100644
--- a/tun_freebsd.go
+++ b/tun_freebsd.go
@@ -340,11 +340,6 @@ func CreateTUNFromFile(file *os.File) (TUNDevice, error) {
return nil, err
}
- if err != nil {
- tun.fd.Close()
- return nil, err
- }
-
tun.rwcancel, err = rwcancel.NewRWCancel(int(file.Fd()))
if err != nil {
tun.fd.Close()