summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/sim/process.cc3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/sim/process.cc b/src/sim/process.cc
index def42c0b2..cbafb62fe 100644
--- a/src/sim/process.cc
+++ b/src/sim/process.cc
@@ -242,9 +242,6 @@ int
Process::allocFD(int sim_fd, const string& filename, int flags, int mode,
bool pipe)
{
- if (sim_fd == -1)
- return -1;
-
for (int free_fd = 0; free_fd < fd_array->size(); free_fd++) {
FDEntry *fde = getFDEntry(free_fd);
if (fde->isFree()) {