]> Cypherpunks repositories - gostls13.git/commitdiff
syscall: Fix one issue detected by vet.
authorRobin Eklind <r.eklind.87@gmail.com>
Sat, 28 Sep 2013 01:06:50 +0000 (11:06 +1000)
committerDavid Symonds <dsymonds@golang.org>
Sat, 28 Sep 2013 01:06:50 +0000 (11:06 +1000)
R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/14038044

src/pkg/syscall/exec_linux.go

index 81dc80800b7322d56694f67ce645f4b83c399e29..a1656e8dce8e55d40203d579953291a84d4bd832 100644 (file)
@@ -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.