Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit edbf8b85 authored by Daniel Colascione's avatar Daniel Colascione Committed by android-build-merger
Browse files

Merge "Improve codegen slightly when doing FD validity checks" am: 9ad079ba...

Merge "Improve codegen slightly when doing FD validity checks" am: 9ad079ba am: 2378575d am: 7f2d3393
am: b40bbd68

Change-Id: Ieace78b21cd492e3552663e12f055ddae69c4ce2
parents 7af33a4f b40bbd68
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -120,7 +120,7 @@ class unique_fd_impl final {
  // Catch bogus error checks (i.e.: "!fd" instead of "fd != -1").
  bool operator!() const = delete;

  bool ok() const { return get() != -1; }
  bool ok() const { return get() >= 0; }

  int release() __attribute__((warn_unused_result)) {
    tag(fd_, this, nullptr);