From f3c16acd472e2ebe0351e6cf298e73285050216f Mon Sep 17 00:00:00 2001 From: Qiang Huang Date: Fri, 6 Jan 2017 10:20:27 +0800 Subject: [PATCH] Fix go_vet errors runc/libcontainer/configs/namespaces_syscall_unsupported.go Line 7: error: unreachable code (vet) Line 14: error: unreachable code (vet) Signed-off-by: Qiang Huang --- libcontainer/configs/namespaces_syscall_unsupported.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/libcontainer/configs/namespaces_syscall_unsupported.go b/libcontainer/configs/namespaces_syscall_unsupported.go index 0547223a..5d9a5c81 100644 --- a/libcontainer/configs/namespaces_syscall_unsupported.go +++ b/libcontainer/configs/namespaces_syscall_unsupported.go @@ -4,12 +4,10 @@ package configs func (n *Namespace) Syscall() int { panic("No namespace syscall support") - return 0 } // CloneFlags parses the container's Namespaces options to set the correct // flags on clone, unshare. This function returns flags only for new namespaces. func (n *Namespaces) CloneFlags() uintptr { panic("No namespace syscall support") - return uintptr(0) }