commit | bc4a83a32c93aa8b17c2fe2f3318ca9996a3120e | [log] [tgz] |
---|---|---|
author | Theodore Dubois <tbodt@google.com> | Thu Jul 07 18:41:19 2022 +0000 |
committer | CQ Bot <fuchsia-internal-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu Jul 07 18:41:19 2022 +0000 |
tree | 7902d7e7d0a51bac7efe997217ae4a27004dec4b | |
parent | 3940122c4416b54eab9445e6aa7891ddbb41dbfd [diff] |
[starnix] Remove redundant is_shutdown test from UnixSocket::read If this condition is met, the following peek/read call will return MessageReadInfo::default() because the queue is empty, the EAGAIN return would be skipped because the socket is shut down, and MessageReadInfo::default() would be returned anyway. So the check is redundant. Change-Id: I8e5df0753707db243f4aeaf6124e51a958de7f21 Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/698403 Reviewed-by: Kevin Lindkvist <lindkvist@google.com> Commit-Queue: Auto-Submit <auto-submit@fuchsia-infra.iam.gserviceaccount.com> Fuchsia-Auto-Submit: Theodore Dubois <tbodt@google.com>
Fuchsia is an open source, general purpose operating system supporting modern 64-bit Intel and ARM processors.
We expect everyone interacting with our project to respect our code of conduct.
Read more about Fuchsia's principles.
See Getting Started.
See fuchsia.dev.