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

Commit 92d914d1 authored by Chris Manton's avatar Chris Manton
Browse files

Remove unused return val btif/src::btsock_thread_init

Towards readable code

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working
Test: acts -tc BleCocTest
Change-Id: Iddcc2af04bc397eedb29e9ddaf78abf8215ac045
parent fe29d435
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -43,7 +43,7 @@ typedef void (*btsock_signaled_cb)(int fd, int type, int flags,
                                   uint32_t user_id);
typedef void (*btsock_cmd_cb)(int cmd_fd, int type, int size, uint32_t user_id);

int btsock_thread_init();
void btsock_thread_init();
int btsock_thread_add_fd(int handle, int fd, int type, int flags,
                         uint32_t user_id);
bool btsock_thread_remove_fd_and_close(int thread_handle, int fd);
+1 −2
Original line number Diff line number Diff line
@@ -149,7 +149,7 @@ static void free_thread_slot(int h) {
  } else
    APPL_TRACE_ERROR("invalid thread handle:%d", h);
}
int btsock_thread_init() {
void btsock_thread_init() {
  static int initialized;
  APPL_TRACE_DEBUG("in initialized:%d", initialized);
  if (!initialized) {
@@ -164,7 +164,6 @@ int btsock_thread_init() {
      ts[h].cmd_callback = NULL;
    }
  }
  return true;
}
int btsock_thread_create(btsock_signaled_cb callback,
                         btsock_cmd_cb cmd_callback) {