]> git.openfabrics.org - ~emulex/infiniband.git/commitdiff
Bluetooth: Remove hdev->ioctl driver callback
authorMarcel Holtmann <marcel@holtmann.org>
Thu, 10 Oct 2013 17:50:06 +0000 (10:50 -0700)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 10 Oct 2013 20:11:41 +0000 (22:11 +0200)
Since there is no use of hdev->ioctl by any Bluetooth driver since
ever, so just lets remove it.

Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_sock.c

index c06552769644aed0877ec85763eeaa617cd37ae4..237bf8c03fb49f6eb5597e2b89c4cf651e521685 100644 (file)
@@ -287,7 +287,6 @@ struct hci_dev {
        int (*setup)(struct hci_dev *hdev);
        int (*send)(struct sk_buff *skb);
        void (*notify)(struct hci_dev *hdev, unsigned int evt);
-       int (*ioctl)(struct hci_dev *hdev, unsigned int cmd, unsigned long arg);
 };
 
 #define HCI_PHY_HANDLE(handle) (handle & 0xff)
index 5b2d3f3c9b67026481f97d6656f95e3223eee8d6..3beaa0594009f39251383c41adb0da5b43f51306 100644 (file)
@@ -553,10 +553,7 @@ static int hci_sock_bound_ioctl(struct sock *sk, unsigned int cmd,
                return hci_sock_blacklist_del(hdev, (void __user *) arg);
        }
 
-       if (hdev->ioctl)
-               return hdev->ioctl(hdev, cmd, arg);
-
-       return -EINVAL;
+       return -ENOIOCTLCMD;
 }
 
 static int hci_sock_ioctl(struct socket *sock, unsigned int cmd,