diff options
author | Brian Gianforcaro <b.gianfo@gmail.com> | 2020-08-16 17:34:31 -0700 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-08-17 09:17:57 +0200 |
commit | 5a3cc2da8b372543e7f1208cce1d0b98d6563315 (patch) | |
tree | 559c10d5d442ce389a7fac3c418536e7bf2b0408 /DevTools/UserspaceEmulator | |
parent | 768853940203b923f80f6e8ca28957fec2bcb5c7 (diff) | |
download | serenity-5a3cc2da8b372543e7f1208cce1d0b98d6563315.zip |
UserspaceEmulator: Identical code on both branches, unify return in virt$ioctl
Diffstat (limited to 'DevTools/UserspaceEmulator')
-rw-r--r-- | DevTools/UserspaceEmulator/Emulator.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/DevTools/UserspaceEmulator/Emulator.cpp b/DevTools/UserspaceEmulator/Emulator.cpp index 7dd1b45691..6f849a8f1d 100644 --- a/DevTools/UserspaceEmulator/Emulator.cpp +++ b/DevTools/UserspaceEmulator/Emulator.cpp @@ -912,10 +912,7 @@ int Emulator::virt$ioctl(int fd, unsigned request, FlatPtr arg) if (request == TCSETS) { struct termios termios; mmu().copy_from_vm(&termios, arg, sizeof(termios)); - int rc = syscall(SC_ioctl, fd, request, &termios); - if (rc < 0) - return rc; - return rc; + return syscall(SC_ioctl, fd, request, &termios); } dbg() << "Unsupported ioctl: " << request; dump_backtrace(); |