mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-28 09:31:14 +00:00
Bluetooth: Fix some code style issues in hci_core.c
Signed-off-by: Szymon Janc <szymon.janc@tieto.com> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
This commit is contained in:
parent
adc4266d87
commit
01df8c31d1
1 changed files with 3 additions and 4 deletions
|
@ -465,7 +465,7 @@ int hci_inquiry(void __user *arg)
|
||||||
/* cache_dump can't sleep. Therefore we allocate temp buffer and then
|
/* cache_dump can't sleep. Therefore we allocate temp buffer and then
|
||||||
* copy it to the user space.
|
* copy it to the user space.
|
||||||
*/
|
*/
|
||||||
buf = kmalloc(sizeof(struct inquiry_info) *max_rsp, GFP_KERNEL);
|
buf = kmalloc(sizeof(struct inquiry_info) * max_rsp, GFP_KERNEL);
|
||||||
if (!buf) {
|
if (!buf) {
|
||||||
err = -ENOMEM;
|
err = -ENOMEM;
|
||||||
goto done;
|
goto done;
|
||||||
|
@ -534,7 +534,6 @@ int hci_dev_open(__u16 dev)
|
||||||
set_bit(HCI_INIT, &hdev->flags);
|
set_bit(HCI_INIT, &hdev->flags);
|
||||||
hdev->init_last_cmd = 0;
|
hdev->init_last_cmd = 0;
|
||||||
|
|
||||||
//__hci_request(hdev, hci_reset_req, 0, HZ);
|
|
||||||
ret = __hci_request(hdev, hci_init_req, 0,
|
ret = __hci_request(hdev, hci_init_req, 0,
|
||||||
msecs_to_jiffies(HCI_INIT_TIMEOUT));
|
msecs_to_jiffies(HCI_INIT_TIMEOUT));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue