commit | 9cbecdc781e37065da96478e85b1ea4de0e7911e | [log] [tgz] |
---|---|---|
author | Jonathon Reinhart <jrreinhart@google.com> | Thu May 02 23:45:00 2024 +0000 |
committer | CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> | Thu May 02 23:45:00 2024 +0000 |
tree | d0cc1faf91186cac3056ed4ae3927ecbaf1307e9 | |
parent | 9818527a8610c7a67ee2670278f3f303094b3904 [diff] |
pw_digital_io_linux: Remove OwnedFd::operator=(int fd) There is no need to assign a raw int fd to an existing OwnedFd object. This also prevents the bug where assigning {} actually assigns fd=0, which is not the intent. Instead, we explicitly use Close(). Change-Id: I04208b046d7eb9d9ad1c150cdfc56b3f281698db Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/pigweed/+/207832 Presubmit-Verified: CQ Bot Account <pigweed-scoped@luci-project-accounts.iam.gserviceaccount.com> Commit-Queue: Jonathon Reinhart <jrreinhart@google.com> Lint: Lint 🤖 <android-build-ayeaye@system.gserviceaccount.com> Reviewed-by: Erik Gilling <konkers@google.com>
Pigweed is an open source collection of embedded-targeted libraries–or as we like to call them, modules. These modules are building blocks and infrastructure that enable faster and more reliable development on small-footprint MMU-less 32-bit microcontrollers like the STMicroelectronics STM32L452 or the Nordic nRF52832.
For more information please see our website: https://pigweed.dev/.