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>
This commit is contained in:
parent
34eb525c1f
commit
8ce6284ea3
@ -900,10 +900,8 @@ failed:
|
|||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int get_connections(struct sock *sk, u16 index, unsigned char *data,
|
static int get_connections(struct sock *sk, u16 index)
|
||||||
u16 len)
|
|
||||||
{
|
{
|
||||||
struct mgmt_cp_get_connections *cp;
|
|
||||||
struct mgmt_rp_get_connections *rp;
|
struct mgmt_rp_get_connections *rp;
|
||||||
struct hci_dev *hdev;
|
struct hci_dev *hdev;
|
||||||
struct list_head *p;
|
struct list_head *p;
|
||||||
@ -913,8 +911,6 @@ static int get_connections(struct sock *sk, u16 index, unsigned char *data,
|
|||||||
|
|
||||||
BT_DBG("");
|
BT_DBG("");
|
||||||
|
|
||||||
cp = (void *) data;
|
|
||||||
|
|
||||||
hdev = hci_dev_get(index);
|
hdev = hci_dev_get(index);
|
||||||
if (!hdev)
|
if (!hdev)
|
||||||
return cmd_status(sk, index, MGMT_OP_GET_CONNECTIONS, ENODEV);
|
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)
|
|||||||
err = disconnect(sk, index, buf + sizeof(*hdr), len);
|
err = disconnect(sk, index, buf + sizeof(*hdr), len);
|
||||||
break;
|
break;
|
||||||
case MGMT_OP_GET_CONNECTIONS:
|
case MGMT_OP_GET_CONNECTIONS:
|
||||||
err = get_connections(sk, index, buf + sizeof(*hdr), len);
|
err = get_connections(sk, index);
|
||||||
break;
|
break;
|
||||||
case MGMT_OP_PIN_CODE_REPLY:
|
case MGMT_OP_PIN_CODE_REPLY:
|
||||||
err = pin_code_reply(sk, index, buf + sizeof(*hdr), len);
|
err = pin_code_reply(sk, index, buf + sizeof(*hdr), len);
|
||||||
|
Loading…
Reference in New Issue
Block a user