From 859e1377412d3f769644ef7397c6e532e78fd23e Mon Sep 17 00:00:00 2001 From: Ksawlii Date: Sun, 24 Nov 2024 00:23:50 +0100 Subject: [PATCH] Revert "Bluetooth: MGMT: Add error handling to pair_device()" This reverts commit 6c918bc083eb0c0c1d018457ecf3e40dfacbb1be. --- net/bluetooth/mgmt.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index 83e372fa7..592578df5 100755 --- a/net/bluetooth/mgmt.c +++ b/net/bluetooth/mgmt.c @@ -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;