From: Andrei Emeltchenko Date: Wed, 30 May 2012 06:55:32 +0000 (+0300) Subject: Bluetooth: Do not check func ready existence X-Git-Tag: v3.6-rc1~125^2~57^2~2^2~66 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fd83e2c27c1bd8b0e9dc7596339c2411385f8b0c;p=platform%2Fkernel%2Flinux-stable.git 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 Signed-off-by: Gustavo Padovan --- diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index 3daac2c..953ac53 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)