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

Commit c4b24f70 authored by Florian Mayer's avatar Florian Mayer
Browse files

cleanup: PLOG(FATAL) crashes, does not need else branch

Change-Id: I49a439d444dc9f566a05bab23d8cfd06ce56d4a6
parent 57db6f45
Loading
Loading
Loading
Loading
+21 −22
Original line number Diff line number Diff line
@@ -303,7 +303,7 @@ static void ReadCrashInfo(unique_fd& fd, siginfo_t* siginfo,
  *recoverable_crash = false;
  if (rc == -1) {
    PLOG(FATAL) << "failed to read target ucontext";
  } else {
  }
  ssize_t expected_size = 0;
  switch (crash_info->header.version) {
    case 1:
@@ -325,7 +325,6 @@ static void ReadCrashInfo(unique_fd& fd, siginfo_t* siginfo,
    LOG(FATAL) << "read " << rc << " bytes when reading target crash information, expected "
                << expected_size;
  }
  }

  switch (crash_info->header.version) {
    case 4: