2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

Simplify condition

This commit is contained in:
Chloe Marcec 2021-01-23 22:12:05 +11:00
parent 3b0458a7a5
commit 822edff5bd

View file

@ -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 {