diff options
author | Ben Wiederhake <BenWiederhake.GitHub@gmx.de> | 2021-09-19 22:26:14 +0200 |
---|---|---|
committer | Ali Mohammad Pur <Ali.mpfard@gmail.com> | 2021-09-21 04:22:52 +0430 |
commit | 12247fe9b44dd5bcb9cbab7c6ab80fcd6f3281ea (patch) | |
tree | e815ef49f90a66da67ef4ec1f7227696176c39f4 /Kernel | |
parent | 743470c8f299419199c578efc80e405a8ec0e4d0 (diff) | |
download | serenity-12247fe9b44dd5bcb9cbab7c6ab80fcd6f3281ea.zip |
Kernel: Use AK::Variant default initialization where appropriate
Diffstat (limited to 'Kernel')
-rw-r--r-- | Kernel/Syscalls/waitid.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Kernel/Syscalls/waitid.cpp b/Kernel/Syscalls/waitid.cpp index f94025d917..6bdfe1aa06 100644 --- a/Kernel/Syscalls/waitid.cpp +++ b/Kernel/Syscalls/waitid.cpp @@ -25,10 +25,9 @@ KResultOr<FlatPtr> Process::sys$waitid(Userspace<const Syscall::SC_waitid_params REQUIRE_PROMISE(proc); 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) { case P_ALL: - waitee = Empty {}; break; case P_PID: { auto waitee_process = Process::from_pid(params.id); |