diff --git a/components/bt/host/bluedroid/api/esp_hf_client_api.c b/components/bt/host/bluedroid/api/esp_hf_client_api.c index 64ef18eb320..6c93f44ed1f 100644 --- a/components/bt/host/bluedroid/api/esp_hf_client_api.c +++ b/components/bt/host/bluedroid/api/esp_hf_client_api.c @@ -518,9 +518,6 @@ esp_err_t esp_hf_client_register_data_callback(esp_hf_client_incoming_data_cb_t if (esp_bluedroid_get_status() != ESP_BLUEDROID_STATUS_ENABLED) { return ESP_ERR_INVALID_STATE; } - if (recv == NULL || send == NULL) { - return ESP_ERR_INVALID_ARG; - } btc_msg_t msg; msg.sig = BTC_SIG_API_CALL; diff --git a/components/bt/host/bluedroid/api/include/api/esp_hf_client_legacy_api.h b/components/bt/host/bluedroid/api/include/api/esp_hf_client_legacy_api.h index 6441bfc4b4a..bd934bd36be 100644 --- a/components/bt/host/bluedroid/api/include/api/esp_hf_client_legacy_api.h +++ b/components/bt/host/bluedroid/api/include/api/esp_hf_client_legacy_api.h @@ -57,7 +57,7 @@ typedef uint32_t (* esp_hf_client_outgoing_data_cb_t)(uint8_t *buf, uint32_t len * @return * - ESP_OK: success * - ESP_ERR_INVALID_STATE: if bluetooth stack is not yet enabled - * - ESP_FAIL: if callback is a NULL function pointer + * - ESP_FAIL: others * */ esp_err_t esp_hf_client_register_data_callback(esp_hf_client_incoming_data_cb_t recv,