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

Commit ab9f0cd7 authored by Christopher Ferris's avatar Christopher Ferris
Browse files

Remove double check of fd value.

The output.text.fd value is only ever -1 when there is a failure.
There is no need to check both < 0 or -1, so only check for -1.

Test: Unit tests pass.
Test: Verified the message is seen on intercept and not on
Test: regular crashes.
Change-Id: I1eddcd5d2342b268ceb261b246c98b10cee85bb4
parent 055abbb4
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -448,10 +448,8 @@ static void crash_completed(borrowed_fd sockfd, std::unique_ptr<Crash> crash) {
    return;
  }

  if (crash->output.text.fd < 0) {
  if (crash->output.text.fd == -1) {
    LOG(WARNING) << "skipping tombstone file creation due to intercept";
    }
    return;
  }