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

Commit 6da13538 authored by Elliott Hughes's avatar Elliott Hughes
Browse files

Remove dead code from debuggerd.

  system/core/debuggerd/debuggerd.cpp:683:5: warning: Value stored to 'logsocket' is never read
    logsocket = -1;
    ^           ~~

Bug: http://b/27264392
Change-Id: I8eab8a02b67f219c32aea49e4d4957e5642df38f
parent 2773d4f9
Loading
Loading
Loading
Loading
+0 −7
Original line number Diff line number Diff line
@@ -678,13 +678,6 @@ static int do_server() {
  // Ignore failed writes to closed sockets
  signal(SIGPIPE, SIG_IGN);

  int logsocket = socket_local_client("logd", ANDROID_SOCKET_NAMESPACE_ABSTRACT, SOCK_DGRAM);
  if (logsocket < 0) {
    logsocket = -1;
  } else {
    fcntl(logsocket, F_SETFD, FD_CLOEXEC);
  }

  struct sigaction act;
  act.sa_handler = SIG_DFL;
  sigemptyset(&act.sa_mask);