mirror of
git://git.musl-libc.org/musl
synced 2025-03-06 20:48:29 +01:00
don't continue looping through ioctl compat_map after finding match
there's only one matching entry for any given command so this had no functional distinction, but additional loops are pointless and wasteful.
This commit is contained in:
parent
d6a62addce
commit
4d70641077
1 changed files with 1 additions and 0 deletions
|
@ -128,6 +128,7 @@ int ioctl(int fd, int req, ...)
|
|||
r = __syscall(SYS_ioctl, fd, compat_map[i].old_req, u.buf);
|
||||
if (r<0) break;
|
||||
convert_ioctl_struct(&compat_map[i], u.buf, arg, R);
|
||||
break;
|
||||
}
|
||||
}
|
||||
return __syscall_ret(r);
|
||||
|
|
Loading…
Add table
Reference in a new issue