Commit 460da45d authored by Gustavo F. Padovan's avatar Gustavo F. Padovan

Bluetooth: Remove lock from inquiry_cache

It was never used, so removing it.
Acked-by: default avatarMarcel Holtmann <marcel@holtmann.org>
Signed-off-by: default avatarGustavo F. Padovan <padovan@profusion.mobi>
parent 2fb9b3d4
...@@ -50,7 +50,6 @@ struct inquiry_entry { ...@@ -50,7 +50,6 @@ struct inquiry_entry {
}; };
struct inquiry_cache { struct inquiry_cache {
spinlock_t lock;
__u32 timestamp; __u32 timestamp;
struct inquiry_entry *list; struct inquiry_entry *list;
}; };
...@@ -349,15 +348,9 @@ extern int sco_recv_scodata(struct hci_conn *hcon, struct sk_buff *skb); ...@@ -349,15 +348,9 @@ extern int sco_recv_scodata(struct hci_conn *hcon, struct sk_buff *skb);
#define INQUIRY_CACHE_AGE_MAX (HZ*30) /* 30 seconds */ #define INQUIRY_CACHE_AGE_MAX (HZ*30) /* 30 seconds */
#define INQUIRY_ENTRY_AGE_MAX (HZ*60) /* 60 seconds */ #define INQUIRY_ENTRY_AGE_MAX (HZ*60) /* 60 seconds */
#define inquiry_cache_lock(c) spin_lock(&c->lock)
#define inquiry_cache_unlock(c) spin_unlock(&c->lock)
#define inquiry_cache_lock_bh(c) spin_lock_bh(&c->lock)
#define inquiry_cache_unlock_bh(c) spin_unlock_bh(&c->lock)
static inline void inquiry_cache_init(struct hci_dev *hdev) static inline void inquiry_cache_init(struct hci_dev *hdev)
{ {
struct inquiry_cache *c = &hdev->inq_cache; struct inquiry_cache *c = &hdev->inq_cache;
spin_lock_init(&c->lock);
c->list = NULL; c->list = NULL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment