summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2024-01-16 03:53:20 +0100
committerLiam <byteslice@airmail.cc>2024-01-19 03:12:30 +0100
commit04867e2456d926364ede540954767cc39c58e464 (patch)
tree328ac4e2a5eeb52f2adcfaadcfa05231d939b8f2 /src/core/hle
parentnvdrv: clean up preallocation (diff)
downloadyuzu-04867e2456d926364ede540954767cc39c58e464.tar
yuzu-04867e2456d926364ede540954767cc39c58e464.tar.gz
yuzu-04867e2456d926364ede540954767cc39c58e464.tar.bz2
yuzu-04867e2456d926364ede540954767cc39c58e464.tar.lz
yuzu-04867e2456d926364ede540954767cc39c58e464.tar.xz
yuzu-04867e2456d926364ede540954767cc39c58e464.tar.zst
yuzu-04867e2456d926364ede540954767cc39c58e464.zip
Diffstat (limited to 'src/core/hle')
-rw-r--r--src/core/hle/service/nvdrv/devices/nvhost_vic.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/core/hle/service/nvdrv/devices/nvhost_vic.cpp b/src/core/hle/service/nvdrv/devices/nvhost_vic.cpp
index 263061f1d..bf090f5eb 100644
--- a/src/core/hle/service/nvdrv/devices/nvhost_vic.cpp
+++ b/src/core/hle/service/nvdrv/devices/nvhost_vic.cpp
@@ -78,10 +78,7 @@ void nvhost_vic::OnClose(DeviceFD fd) {
if (iter != host1x_file.fd_to_id.end()) {
system.GPU().ClearCdmaInstance(iter->second);
}
- auto it = sessions.find(fd);
- if (it != sessions.end()) {
- sessions.erase(it);
- }
+ sessions.erase(fd);
}
} // namespace Service::Nvidia::Devices