diff options
author | Andrei Emeltchenko <andrei.emeltchenko@intel.com> | 2012-05-30 02:55:32 -0400 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-06-04 23:34:14 -0400 |
commit | fd83e2c27c1bd8b0e9dc7596339c2411385f8b0c (patch) | |
tree | 7852ad94ac8b2765c5a2e3fffda120a5189393fd /net/bluetooth | |
parent | 1afd5be87e30997a5623260d9177ed62cf88adbe (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.c | 3 |
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) | |||
945 | 945 | ||
946 | chan->state = BT_CONNECTED; | 946 | chan->state = BT_CONNECTED; |
947 | 947 | ||
948 | if (chan->ops->ready) | 948 | chan->ops->ready(chan); |
949 | chan->ops->ready(chan); | ||
950 | } | 949 | } |
951 | 950 | ||
952 | static void l2cap_do_start(struct l2cap_chan *chan) | 951 | static void l2cap_do_start(struct l2cap_chan *chan) |