Move source tree closer to the 2.6.32.17 mainline
/net/bluetooth/af_bluetooth.c
blob:1707efb7cb0faf039035b5e8ca1f6f00de6a91fc -> blob:49ff6c7468058ee485edde1f4b2d1369d117d6fe
--- net/bluetooth/af_bluetooth.c
+++ net/bluetooth/af_bluetooth.c
@@ -161,13 +161,6 @@ static int bt_sock_create(struct net *ne
{
int err;
- if (proto == BTPROTO_RFCOMM || proto == BTPROTO_SCO ||
- proto == BTPROTO_L2CAP) {
- if (!current_has_bt())
- return -EPERM;
- } else if (!current_has_bt_admin())
- return -EPERM;
-
if (net != &init_net)
return -EAFNOSUPPORT;