]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/blobdiff - net/bluetooth/hci_core.c
sched: Remove proliferation of wait_on_bit() action functions
[mirror_ubuntu-hirsute-kernel.git] / net / bluetooth / hci_core.c
index 0a43cce9a914b84613c7ee2d6fc30fdfdb2a0bc5..e090bffe1bf856eb6b11d589a10e9d23ea6454ed 100644 (file)
@@ -2186,12 +2186,6 @@ static void hci_inq_req(struct hci_request *req, unsigned long opt)
        hci_req_add(req, HCI_OP_INQUIRY, sizeof(cp), &cp);
 }
 
-static int wait_inquiry(void *word)
-{
-       schedule();
-       return signal_pending(current);
-}
-
 int hci_inquiry(void __user *arg)
 {
        __u8 __user *ptr = arg;
@@ -2242,7 +2236,7 @@ int hci_inquiry(void __user *arg)
                /* Wait until Inquiry procedure finishes (HCI_INQUIRY flag is
                 * cleared). If it is interrupted by a signal, return -EINTR.
                 */
-               if (wait_on_bit(&hdev->flags, HCI_INQUIRY, wait_inquiry,
+               if (wait_on_bit(&hdev->flags, HCI_INQUIRY,
                                TASK_INTERRUPTIBLE))
                        return -EINTR;
        }