summaryrefslogtreecommitdiff
path: root/net/bluetooth
diff options
context:
space:
mode:
authorAndrei Emeltchenko <andrei.emeltchenko@intel.com>2012-05-30 09:55:32 +0300
committerJohan Hedberg <johan.hedberg@intel.com>2012-06-05 06:34:14 +0300
commitfd83e2c27c1bd8b0e9dc7596339c2411385f8b0c (patch)
tree7852ad94ac8b2765c5a2e3fffda120a5189393fd /net/bluetooth
parent1afd5be87e30997a5623260d9177ed62cf88adbe (diff)
Bluetooth: Do not check func ready existence
Functions will be always defined and in case not implemented as dummy __no_func. Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com> Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Diffstat (limited to 'net/bluetooth')
-rw-r--r--net/bluetooth/l2cap_core.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c
index 3daac2c6b7b4..953ac53ae438 100644
--- a/net/bluetooth/l2cap_core.c
+++ b/net/bluetooth/l2cap_core.c
@@ -945,8 +945,7 @@ static void l2cap_chan_ready(struct l2cap_chan *chan)
chan->state = BT_CONNECTED;
- if (chan->ops->ready)
- chan->ops->ready(chan);
+ chan->ops->ready(chan);
}
static void l2cap_do_start(struct l2cap_chan *chan)