Revert "Bluetooth: MGMT: Add error handling to pair_device()"
This reverts commit 6c918bc083
.
This commit is contained in:
parent
9b92164945
commit
859e137741
1 changed files with 0 additions and 4 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue