]> git.karo-electronics.de Git - linux-beck.git/commit
Bluetooth: Split error handling for L2CAP listen sockets
authorMarcel Holtmann <marcel@holtmann.org>
Thu, 19 Apr 2012 11:43:51 +0000 (13:43 +0200)
committerGustavo Padovan <gustavo@padovan.org>
Wed, 9 May 2012 04:40:37 +0000 (01:40 -0300)
commit6b3af7334bd3c403647606adfb04f6e6bcf1597e
tree5e4569e2e9c4e97735f7fdb5e1d24d02d9c5af10
parent35d4adcca1707c551f4598f68fe83118dd82cd60
Bluetooth: Split error handling for L2CAP listen sockets

Split the checks for sk->sk_state and sk->sk_type for L2CAP listen
sockets. This makes the code more readable.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Gustavo Padovan <gustavo@padovan.org>
net/bluetooth/l2cap_sock.c