summaryrefslogtreecommitdiff
path: root/Kernel/FileDescriptor.cpp
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-01-31 02:56:54 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-01-31 02:56:54 +0100
commit6b88025dda05cab4526783c80269fd740312980f (patch)
treeb552a645e9da02f19c23061476db8123fc3fbc11 /Kernel/FileDescriptor.cpp
parent2c6a3f1907aa63a459f50dfb872f6163b5305296 (diff)
downloadserenity-6b88025dda05cab4526783c80269fd740312980f.zip
Remove the last remaining #ifndef SERENITY blocks.
Diffstat (limited to 'Kernel/FileDescriptor.cpp')
-rw-r--r--Kernel/FileDescriptor.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/Kernel/FileDescriptor.cpp b/Kernel/FileDescriptor.cpp
index d2b1fffcb4..17f6834ce2 100644
--- a/Kernel/FileDescriptor.cpp
+++ b/Kernel/FileDescriptor.cpp
@@ -129,10 +129,6 @@ off_t FileDescriptor::seek(off_t offset, int whence)
break;
case SEEK_CUR:
newOffset = m_current_offset + offset;
-#ifndef SERENITY
- if (additionWouldOverflow(m_currentOffset, offset))
- return -EOVERFLOW;
-#endif
if (newOffset < 0)
return -EINVAL;
break;