Commit 3e1da545 authored by Thomas Weißschuh's avatar Thomas Weißschuh
Browse files

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: default avatarThomas Weißschuh <linux@weissschuh.net>
Acked-by: default avatarWilly Tarreau <w@1wt.eu>
Reviewed-by: default avatarArnd Bergmann <arnd@arndb.de>
parent e800e944
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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;