diff --git a/net/bluetooth/smp.c b/net/bluetooth/smp.c index c654c5880912843ae3ce3c970c336f2d444633e8..dfb4e1161c10fbb62b6ac43220949992a5075dfc 100644 --- a/net/bluetooth/smp.c +++ b/net/bluetooth/smp.c @@ -889,8 +889,6 @@ int smp_conn_security(struct hci_conn *hcon, __u8 sec_level) if (!conn) return 1; - smp = conn->smp_chan; - if (!test_bit(HCI_LE_ENABLED, &hcon->hdev->dev_flags)) return 1;