From: Robin Eklind Date: Sat, 28 Sep 2013 01:06:50 +0000 (+1000) Subject: syscall: Fix one issue detected by vet. X-Git-Tag: go1.2rc2~105 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=9bd1f49e377d86c935d13d0bd0a8e8c3d986c18c;p=gostls13.git syscall: Fix one issue detected by vet. R=golang-dev, dsymonds CC=golang-dev https://golang.org/cl/14038044 --- diff --git a/src/pkg/syscall/exec_linux.go b/src/pkg/syscall/exec_linux.go index 81dc80800b..a1656e8dce 100644 --- a/src/pkg/syscall/exec_linux.go +++ b/src/pkg/syscall/exec_linux.go @@ -242,11 +242,6 @@ childerror: for { RawSyscall(SYS_EXIT, 253, 0, 0) } - - // Calling panic is not actually safe, - // but the for loop above won't break - // and this shuts up the compiler. - panic("unreached") } // Try to open a pipe with O_CLOEXEC set on both file descriptors.