Skip to content

Commit 324d36e

Browse files
holtmannjhedberg
authored andcommitted
Bluetooth: Remove hdev->ioctl driver callback
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>
1 parent e93ac9c commit 324d36e

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

‎include/net/bluetooth/hci_core.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,6 @@ struct hci_dev {
287287
int (*setup)(struct hci_dev *hdev);
288288
int (*send)(struct sk_buff *skb);
289289
void (*notify)(struct hci_dev *hdev, unsigned int evt);
290-
int (*ioctl)(struct hci_dev *hdev, unsigned int cmd, unsigned long arg);
291290
};
292291

293292
#define HCI_PHY_HANDLE(handle) (handle & 0xff)

‎net/bluetooth/hci_sock.c‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -553,10 +553,7 @@ static int hci_sock_bound_ioctl(struct sock *sk, unsigned int cmd,
553553
return hci_sock_blacklist_del(hdev, (void __user *) arg);
554554
}
555555

556-
if (hdev->ioctl)
557-
return hdev->ioctl(hdev, cmd, arg);
558-
559-
return -EINVAL;
556+
return -ENOIOCTLCMD;
560557
}
561558

562559
static int hci_sock_ioctl(struct socket *sock, unsigned int cmd,

0 commit comments

Comments
 (0)