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

Commit 50b95e7f authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Fix regression due to lack of braces"

parents 256ec664 658a9f79
Loading
Loading
Loading
Loading
+7 −6
Original line number Diff line number Diff line
@@ -417,11 +417,12 @@ tHID_STATUS HID_HostOpenDev(uint8_t dev_handle) {
  if (!hh_cb.reg_flag) return (HID_ERR_NOT_REGISTERED);

  if ((dev_handle >= HID_HOST_MAX_DEVICES) ||
      (!hh_cb.devices[dev_handle].in_use))
      (!hh_cb.devices[dev_handle].in_use)) {
    log_counter_metrics(android::bluetooth::CodePathCounterKeyEnum::
                            HIDH_ERR_INVALID_PARAM_AT_HOST_OPEN_DEV,
                        1);
    return HID_ERR_INVALID_PARAM;
  }

  if (hh_cb.devices[dev_handle].state != HID_DEV_NO_CONN) {
    log_counter_metrics(