diff options
| author | 2018-10-24 14:24:36 -0400 | |
|---|---|---|
| committer | 2018-10-24 14:24:36 -0400 | |
| commit | 474bc29208c8fa5f032a235afbc5bcf94dfcc470 (patch) | |
| tree | ce1fbd3a50bab3c8f6af856b75a4e752983a281f /src | |
| parent | kernel/server_port: Change error case return value in Accept() to ERR_NOT_FOUND (diff) | |
| download | yuzu-474bc29208c8fa5f032a235afbc5bcf94dfcc470.tar.gz yuzu-474bc29208c8fa5f032a235afbc5bcf94dfcc470.tar.xz yuzu-474bc29208c8fa5f032a235afbc5bcf94dfcc470.zip | |
kernel/server_port: Simplify emptiness check within ShouldWait()
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/kernel/server_port.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hle/kernel/server_port.cpp b/src/core/hle/kernel/server_port.cpp index 2c98d3c38..d6ceeb2da 100644 --- a/src/core/hle/kernel/server_port.cpp +++ b/src/core/hle/kernel/server_port.cpp | |||
| @@ -28,7 +28,7 @@ ResultVal<SharedPtr<ServerSession>> ServerPort::Accept() { | |||
| 28 | 28 | ||
| 29 | bool ServerPort::ShouldWait(Thread* thread) const { | 29 | bool ServerPort::ShouldWait(Thread* thread) const { |
| 30 | // If there are no pending sessions, we wait until a new one is added. | 30 | // If there are no pending sessions, we wait until a new one is added. |
| 31 | return pending_sessions.size() == 0; | 31 | return pending_sessions.empty(); |
| 32 | } | 32 | } |
| 33 | 33 | ||
| 34 | void ServerPort::Acquire(Thread* thread) { | 34 | void ServerPort::Acquire(Thread* thread) { |