]> Pileus Git - ~andy/linux/blobdiff - net/bluetooth/hci_core.c
Bluetooth: Rename function bt_err to bt_to_errno
[~andy/linux] / net / bluetooth / hci_core.c
index 0029e178e52e80202cb4bf35346116d75e64eecc..cd59b849d0556af22e2bbd4848fe36e87f3f618c 100644 (file)
@@ -148,7 +148,7 @@ static int __hci_request(struct hci_dev *hdev, void (*req)(struct hci_dev *hdev,
 
        switch (hdev->req_status) {
        case HCI_REQ_DONE:
-               err = -bt_err(hdev->req_result);
+               err = -bt_to_errno(hdev->req_result);
                break;
 
        case HCI_REQ_CANCELED: