]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
tools/nolibc: remove now superfluous overflow check in llseek
authorThomas Weißschuh <linux@weissschuh.net>
Wed, 29 Oct 2025 16:02:55 +0000 (17:02 +0100)
committerThomas Weißschuh <linux@weissschuh.net>
Thu, 20 Nov 2025 18:47:04 +0000 (19:47 +0100)
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>
tools/include/nolibc/sys.h

index 32815c299365f29e4d47f2b79a7624ce92ea8b9a..847af1ccbdc9625fd7cc0c819da2fe1a0929e916 100644 (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;