Revert "Bluetooth: MGMT: Add error handling to pair_device()"

This reverts commit 6c918bc083.
This commit is contained in:
Ksawlii 2024-11-24 00:23:50 +01:00
parent 9b92164945
commit 859e137741

View file

@ -2961,10 +2961,6 @@ static int pair_device(struct sock *sk, struct hci_dev *hdev, void *data,
* will be kept and this function does nothing.
*/
p = hci_conn_params_add(hdev, &cp->addr.bdaddr, addr_type);
if (!p) {
err = -EIO;
goto unlock;
}
if (p->auto_connect == HCI_AUTO_CONN_EXPLICIT)
p->auto_connect = HCI_AUTO_CONN_DISABLED;