summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fs
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/sentry/fs')
-rw-r--r--pkg/sentry/fs/host/util_unsafe.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/pkg/sentry/fs/host/util_unsafe.go b/pkg/sentry/fs/host/util_unsafe.go
index d00da89d6..a8721d197 100644
--- a/pkg/sentry/fs/host/util_unsafe.go
+++ b/pkg/sentry/fs/host/util_unsafe.go
@@ -57,9 +57,6 @@ func readLink(fd int) (string, error) {
uintptr(unsafe.Pointer(&b[0])),
uintptr(l),
0, 0)
- if n < 0 {
- n = 0
- }
if errno != 0 {
return "", errno
}