mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
Bluetooth: hci_conn: Remove a redundant check for HFP offload
Remove a redundant check !hdev->get_codec_config_data. Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com> Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This commit is contained in:
parent
c48439fcd1
commit
d68d8a7a2c
1 changed files with 4 additions and 4 deletions
|
@ -241,13 +241,13 @@ static int configure_datapath_sync(struct hci_dev *hdev, struct bt_codec *codec)
|
|||
__u8 vnd_len, *vnd_data = NULL;
|
||||
struct hci_op_configure_data_path *cmd = NULL;
|
||||
|
||||
/* Do not take below 2 checks as error since the 1st means user do not
|
||||
* want to use HFP offload mode and the 2nd means the vendor controller
|
||||
* do not need to send below HCI command for offload mode.
|
||||
*/
|
||||
if (!codec->data_path || !hdev->get_codec_config_data)
|
||||
return 0;
|
||||
|
||||
/* Do not take me as error */
|
||||
if (!hdev->get_codec_config_data)
|
||||
return 0;
|
||||
|
||||
err = hdev->get_codec_config_data(hdev, ESCO_LINK, codec, &vnd_len,
|
||||
&vnd_data);
|
||||
if (err < 0)
|
||||
|
|
Loading…
Reference in a new issue