nimble/host: Remove redundant check in connection latency

* The `params->latency` is uint16_t and BLE_HCI_CONN_LATENCY_MIN is 0 which is
  why we can drop it.
This commit is contained in:
Prasad Alatkar
2021-07-15 15:13:01 +05:30
committed by Szymon Janc
parent 09466ab810
commit 33a5574444
+1 -2
View File
@@ -4659,8 +4659,7 @@ ble_gap_check_conn_params(uint8_t phy, const struct ble_gap_conn_params *params)
}
/* Check connection latency */
if ((params->latency < BLE_HCI_CONN_LATENCY_MIN) ||
(params->latency > BLE_HCI_CONN_LATENCY_MAX)) {
if (params->latency > BLE_HCI_CONN_LATENCY_MAX) {
return BLE_ERR_INV_HCI_CMD_PARMS;
}