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

Commit 299bfdc6 authored by Chris Manton's avatar Chris Manton
Browse files

Streamline stack/hid/hidh_conn::hidh_conn_disconnect

Bug: 163134718
Test: cert
Tag: #refactor

Change-Id: I9cec9a720ef56e5e73f5830884dcd12abdc875fb
parent 9beee168
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -129,8 +129,6 @@ tHID_STATUS hidh_conn_reg(void) {
tHID_STATUS hidh_conn_disconnect(uint8_t dhandle) {
  tHID_CONN* p_hcon = &hh_cb.devices[dhandle].conn;

  HIDH_TRACE_EVENT("HID-Host disconnect");

  if ((p_hcon->ctrl_cid != 0) || (p_hcon->intr_cid != 0)) {
    p_hcon->conn_state = HID_CONN_STATE_DISCONNECTING;

@@ -146,8 +144,7 @@ tHID_STATUS hidh_conn_disconnect(uint8_t dhandle) {
  } else {
    p_hcon->conn_state = HID_CONN_STATE_UNUSED;
  }

  return (HID_SUCCESS);
  return HID_SUCCESS;
}

/*******************************************************************************