From: Thomas Weißschuh Date: Wed, 29 Oct 2025 16:02:55 +0000 (+0100) Subject: tools/nolibc: remove now superfluous overflow check in llseek X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3e1da545db4c26c39955bd2eee2d71b62d1ba045;p=thirdparty%2Flinux.git 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 Acked-by: Willy Tarreau Reviewed-by: Arnd Bergmann --- diff --git a/tools/include/nolibc/sys.h b/tools/include/nolibc/sys.h index 32815c299365f..847af1ccbdc96 100644 --- a/tools/include/nolibc/sys.h +++ b/tools/include/nolibc/sys.h @@ -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;