]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: discard bt_sock_unregister() errors
authorDavid Herrmann <dh.herrmann@gmail.com>
Sun, 24 Feb 2013 18:36:51 +0000 (19:36 +0100)
committerGustavo Padovan <gustavo.padovan@collabora.co.uk>
Fri, 8 Mar 2013 13:38:44 +0000 (10:38 -0300)
commit35d27b89bc3f8be33b6f7d2e8102e588a53ed23a
treeb18a22bb524431c882d39e425297fc0c9adf8b86
parent076c5eb29b254a32849d0cd60516c9e20dcb06bb
Bluetooth: discard bt_sock_unregister() errors

After we successfully registered a socket via bt_sock_register() there is
no reason to ever check the return code of bt_sock_unregister(). If
bt_sock_unregister() fails, it means the socket _is_ already unregistered
so we have what we want, don't we?

Also, to get bt_sock_unregister() to fail, another part of the kernel has
to unregister _our_ socket. This is sooo _wrong_ that it will break way
earlier than when we unregister our socket.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
net/bluetooth/bnep/sock.c
net/bluetooth/cmtp/sock.c
net/bluetooth/hci_sock.c
net/bluetooth/hidp/sock.c
net/bluetooth/l2cap_sock.c
net/bluetooth/rfcomm/sock.c
net/bluetooth/sco.c