|
@@ -671,20 +671,8 @@ enum {
|
|
|
L2CAP_EV_RECV_FRAME,
|
|
|
};
|
|
|
|
|
|
-static inline void l2cap_chan_hold(struct l2cap_chan *c)
|
|
|
-{
|
|
|
- BT_DBG("chan %p orig refcnt %d", c, atomic_read(&c->refcnt));
|
|
|
-
|
|
|
- atomic_inc(&c->refcnt);
|
|
|
-}
|
|
|
-
|
|
|
-static inline void l2cap_chan_put(struct l2cap_chan *c)
|
|
|
-{
|
|
|
- BT_DBG("chan %p orig refcnt %d", c, atomic_read(&c->refcnt));
|
|
|
-
|
|
|
- if (atomic_dec_and_test(&c->refcnt))
|
|
|
- kfree(c);
|
|
|
-}
|
|
|
+void l2cap_chan_hold(struct l2cap_chan *c);
|
|
|
+void l2cap_chan_put(struct l2cap_chan *c);
|
|
|
|
|
|
static inline void l2cap_chan_lock(struct l2cap_chan *chan)
|
|
|
{
|