Bluetooth: Fix some small code style issues in mgmt.c
Signed-off-by: Szymon Janc <szymon.janc@tieto.com> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
This commit is contained in:
Родитель
3cf2a4f6ca
Коммит
b8534e0f2b
|
@ -716,8 +716,7 @@ static int set_service_cache(struct sock *sk, u16 index, unsigned char *data,
|
||||||
cp = (void *) data;
|
cp = (void *) data;
|
||||||
|
|
||||||
if (len != sizeof(*cp))
|
if (len != sizeof(*cp))
|
||||||
return cmd_status(sk, index, MGMT_OP_SET_SERVICE_CACHE,
|
return cmd_status(sk, index, MGMT_OP_SET_SERVICE_CACHE, EINVAL);
|
||||||
EINVAL);
|
|
||||||
|
|
||||||
hdev = hci_dev_get(index);
|
hdev = hci_dev_get(index);
|
||||||
if (!hdev)
|
if (!hdev)
|
||||||
|
@ -1058,8 +1057,7 @@ static int set_io_capability(struct sock *sk, u16 index, unsigned char *data,
|
||||||
cp = (void *) data;
|
cp = (void *) data;
|
||||||
|
|
||||||
if (len != sizeof(*cp))
|
if (len != sizeof(*cp))
|
||||||
return cmd_status(sk, index, MGMT_OP_SET_IO_CAPABILITY,
|
return cmd_status(sk, index, MGMT_OP_SET_IO_CAPABILITY, EINVAL);
|
||||||
EINVAL);
|
|
||||||
|
|
||||||
hdev = hci_dev_get(index);
|
hdev = hci_dev_get(index);
|
||||||
if (!hdev)
|
if (!hdev)
|
||||||
|
@ -1424,8 +1422,7 @@ int mgmt_discoverable(u16 index, u8 discoverable)
|
||||||
struct cmd_lookup match = { discoverable, NULL };
|
struct cmd_lookup match = { discoverable, NULL };
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
mgmt_pending_foreach(MGMT_OP_SET_DISCOVERABLE, index,
|
mgmt_pending_foreach(MGMT_OP_SET_DISCOVERABLE, index, mode_rsp, &match);
|
||||||
mode_rsp, &match);
|
|
||||||
|
|
||||||
ev.val = discoverable;
|
ev.val = discoverable;
|
||||||
|
|
||||||
|
@ -1631,8 +1628,7 @@ int mgmt_user_confirm_reply_complete(u16 index, bdaddr_t *bdaddr, u8 status)
|
||||||
MGMT_OP_USER_CONFIRM_REPLY);
|
MGMT_OP_USER_CONFIRM_REPLY);
|
||||||
}
|
}
|
||||||
|
|
||||||
int mgmt_user_confirm_neg_reply_complete(u16 index, bdaddr_t *bdaddr,
|
int mgmt_user_confirm_neg_reply_complete(u16 index, bdaddr_t *bdaddr, u8 status)
|
||||||
u8 status)
|
|
||||||
{
|
{
|
||||||
return confirm_reply_complete(index, bdaddr, status,
|
return confirm_reply_complete(index, bdaddr, status,
|
||||||
MGMT_OP_USER_CONFIRM_NEG_REPLY);
|
MGMT_OP_USER_CONFIRM_NEG_REPLY);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче