|
@@ -270,7 +270,6 @@ struct hci_dev {
|
|
|
int (*close)(struct hci_dev *hdev);
|
|
|
int (*flush)(struct hci_dev *hdev);
|
|
|
int (*send)(struct sk_buff *skb);
|
|
|
- void (*destruct)(struct hci_dev *hdev);
|
|
|
void (*notify)(struct hci_dev *hdev, unsigned int evt);
|
|
|
int (*ioctl)(struct hci_dev *hdev, unsigned int cmd, unsigned long arg);
|
|
|
};
|
|
@@ -595,10 +594,7 @@ static inline void hci_conn_put(struct hci_conn *conn)
|
|
|
/* ----- HCI Devices ----- */
|
|
|
static inline void __hci_dev_put(struct hci_dev *d)
|
|
|
{
|
|
|
- if (atomic_dec_and_test(&d->refcnt)) {
|
|
|
- if (d->destruct)
|
|
|
- d->destruct(d);
|
|
|
- }
|
|
|
+ atomic_dec(&d->refcnt);
|
|
|
}
|
|
|
|
|
|
/*
|