mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:37:45 +00:00
Kernel: Use AK::Variant default initialization where appropriate
This commit is contained in:
parent
743470c8f2
commit
12247fe9b4
1 changed files with 1 additions and 2 deletions
|
@ -25,10 +25,9 @@ KResultOr<FlatPtr> Process::sys$waitid(Userspace<const Syscall::SC_waitid_params
|
||||||
REQUIRE_PROMISE(proc);
|
REQUIRE_PROMISE(proc);
|
||||||
auto params = TRY(copy_typed_from_user(user_params));
|
auto params = TRY(copy_typed_from_user(user_params));
|
||||||
|
|
||||||
Variant<Empty, NonnullRefPtr<Process>, NonnullRefPtr<ProcessGroup>> waitee = Empty {};
|
Variant<Empty, NonnullRefPtr<Process>, NonnullRefPtr<ProcessGroup>> waitee;
|
||||||
switch (params.idtype) {
|
switch (params.idtype) {
|
||||||
case P_ALL:
|
case P_ALL:
|
||||||
waitee = Empty {};
|
|
||||||
break;
|
break;
|
||||||
case P_PID: {
|
case P_PID: {
|
||||||
auto waitee_process = Process::from_pid(params.id);
|
auto waitee_process = Process::from_pid(params.id);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue