aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth/mgmt.c
diff options
context:
space:
mode:
authorSzymon Janc <szymon.janc@tieto.com>2011-03-01 10:55:32 -0500
committerGustavo F. Padovan <padovan@profusion.mobi>2011-03-01 20:18:54 -0500
commit8ce6284ea350a5249d09c958bdd088ec0eb4f57f (patch)
tree118a43d0574aab08172e40306f3bf9652a43ab7e /net/bluetooth/mgmt.c
parent34eb525c1fda689507118a1f2c77fef51832ec8a (diff)
Bluetooth: Remove unused code from get_connections
Command pointer was a leftover after moving controller index to mgmt_hdr. Signed-off-by: Szymon Janc <szymon.janc@tieto.com> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
Diffstat (limited to 'net/bluetooth/mgmt.c')
-rw-r--r--net/bluetooth/mgmt.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index e6efaae764b3..6dd015277f0d 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -900,10 +900,8 @@ failed:
900 return err; 900 return err;
901} 901}
902 902
903static int get_connections(struct sock *sk, u16 index, unsigned char *data, 903static int get_connections(struct sock *sk, u16 index)
904 u16 len)
905{ 904{
906 struct mgmt_cp_get_connections *cp;
907 struct mgmt_rp_get_connections *rp; 905 struct mgmt_rp_get_connections *rp;
908 struct hci_dev *hdev; 906 struct hci_dev *hdev;
909 struct list_head *p; 907 struct list_head *p;
@@ -913,8 +911,6 @@ static int get_connections(struct sock *sk, u16 index, unsigned char *data,
913 911
914 BT_DBG(""); 912 BT_DBG("");
915 913
916 cp = (void *) data;
917
918 hdev = hci_dev_get(index); 914 hdev = hci_dev_get(index);
919 if (!hdev) 915 if (!hdev)
920 return cmd_status(sk, index, MGMT_OP_GET_CONNECTIONS, ENODEV); 916 return cmd_status(sk, index, MGMT_OP_GET_CONNECTIONS, ENODEV);
@@ -1333,7 +1329,7 @@ int mgmt_control(struct sock *sk, struct msghdr *msg, size_t msglen)
1333 err = disconnect(sk, index, buf + sizeof(*hdr), len); 1329 err = disconnect(sk, index, buf + sizeof(*hdr), len);
1334 break; 1330 break;
1335 case MGMT_OP_GET_CONNECTIONS: 1331 case MGMT_OP_GET_CONNECTIONS:
1336 err = get_connections(sk, index, buf + sizeof(*hdr), len); 1332 err = get_connections(sk, index);
1337 break; 1333 break;
1338 case MGMT_OP_PIN_CODE_REPLY: 1334 case MGMT_OP_PIN_CODE_REPLY:
1339 err = pin_code_reply(sk, index, buf + sizeof(*hdr), len); 1335 err = pin_code_reply(sk, index, buf + sizeof(*hdr), len);