mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
No need to check for negative uintptr.
Fixes #134 PiperOrigin-RevId: 237128306 Change-Id: I396e808484c18931fc5775970ec1f5ae231e1cb9
This commit is contained in:
committed by
Shentubot
parent
cdd63375d3
commit
fbacb35039
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user