mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 22:38:12 +00:00
UserspaceEmulator: Identical code on both branches, unify return in virt$ioctl
This commit is contained in:
parent
7688539402
commit
5a3cc2da8b
1 changed files with 1 additions and 4 deletions
|
@ -912,10 +912,7 @@ int Emulator::virt$ioctl(int fd, unsigned request, FlatPtr arg)
|
||||||
if (request == TCSETS) {
|
if (request == TCSETS) {
|
||||||
struct termios termios;
|
struct termios termios;
|
||||||
mmu().copy_from_vm(&termios, arg, sizeof(termios));
|
mmu().copy_from_vm(&termios, arg, sizeof(termios));
|
||||||
int rc = syscall(SC_ioctl, fd, request, &termios);
|
return syscall(SC_ioctl, fd, request, &termios);
|
||||||
if (rc < 0)
|
|
||||||
return rc;
|
|
||||||
return rc;
|
|
||||||
}
|
}
|
||||||
dbg() << "Unsupported ioctl: " << request;
|
dbg() << "Unsupported ioctl: " << request;
|
||||||
dump_backtrace();
|
dump_backtrace();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue