No need to check for negative uintptr.

Fixes #134

PiperOrigin-RevId: 237128306
Change-Id: I396e808484c18931fc5775970ec1f5ae231e1cb9
This commit is contained in:
Nicolas Lacasse
2019-03-06 15:06:46 -08:00
committed by Shentubot
parent cdd63375d3
commit fbacb35039
-3
View File
@@ -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
}