summaryrefslogtreecommitdiff
path: root/tools/include
diff options
context:
space:
mode:
authorThomas Weißschuh <linux@weissschuh.net>2025-10-29 17:02:55 +0100
committerThomas Weißschuh <linux@weissschuh.net>2025-11-20 19:47:04 +0100
commit3e1da545db4c26c39955bd2eee2d71b62d1ba045 (patch)
tree0b970462240b88e271e9c67ed7f6ddb2688f38a9 /tools/include
parente800e9446867c78eeccb790de68375d4fe77ab65 (diff)
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>
Diffstat (limited to 'tools/include')
-rw-r--r--tools/include/nolibc/sys.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/tools/include/nolibc/sys.h b/tools/include/nolibc/sys.h
index 32815c299365..847af1ccbdc9 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;