mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-13 14:07:46 +00:00
Simplify condition
This commit is contained in:
parent
8687476cd1
commit
586c1cee87
1 changed files with 1 additions and 2 deletions
|
@ -156,8 +156,7 @@ NvResult nvhost_ctrl::IocCtrlEventRegister(const std::vector<u8>& input, std::ve
|
|||
}
|
||||
if (events_interface.registered[event_id]) {
|
||||
const auto event_state = events_interface.status[event_id];
|
||||
if (event_state == EventState::Registered || event_state == EventState::Waiting ||
|
||||
event_state == EventState::Busy) {
|
||||
if (event_state != EventState::Free) {
|
||||
LOG_WARNING(Service_NVDRV, "Event already registered! Unregistering previous event");
|
||||
events_interface.UnregisterEvent(event_id);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue