tools/nolibc: remove now superfluous overflow check in llseek

As off_t is now always 64-bit wide this overflow can not happen anymore,
remove the check.

Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
Acked-by: Willy Tarreau <w@1wt.eu>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
This commit is contained in:
Thomas Weißschuh
2025-10-29 17:02:55 +01:00
parent e800e94468
commit 3e1da545db

View File

@@ -613,8 +613,6 @@ off_t sys_lseek(int fd, off_t offset, int whence)
ret = my_syscall5(__NR_llseek, fd, offset >> 32, (uint32_t)offset, &loff, whence);
if (ret < 0)
result = ret;
else if (loff != (off_t)loff)
result = -EOVERFLOW;
else
result = loff;