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.
@@ -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;
}
