diff options
author | Nicolas Lacasse <nlacasse@google.com> | 2019-03-06 15:05:43 -0800 |
---|---|---|
committer | Shentubot <shentubot@google.com> | 2019-03-06 15:06:46 -0800 |
commit | fbacb350391667fa9ffb78a84ae51a37d477aa02 (patch) | |
tree | 138f581e14430238c52e1172bdbd85742c3b2dac /pkg/sentry/fs/host/util_unsafe.go | |
parent | cdd63375d39e92c6964df0487dcf7d8ff013c9e7 (diff) |
No need to check for negative uintptr.
Fixes #134
PiperOrigin-RevId: 237128306
Change-Id: I396e808484c18931fc5775970ec1f5ae231e1cb9
Diffstat (limited to 'pkg/sentry/fs/host/util_unsafe.go')
-rw-r--r-- | pkg/sentry/fs/host/util_unsafe.go | 3 |
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 } |