diff options
Diffstat (limited to 'net/bluetooth/hci_sock.c')
-rw-r--r-- | net/bluetooth/hci_sock.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/net/bluetooth/hci_sock.c b/net/bluetooth/hci_sock.c index 5b2d3f3c9b67..3beaa0594009 100644 --- a/net/bluetooth/hci_sock.c +++ b/net/bluetooth/hci_sock.c | |||
@@ -553,10 +553,7 @@ static int hci_sock_bound_ioctl(struct sock *sk, unsigned int cmd, | |||
553 | return hci_sock_blacklist_del(hdev, (void __user *) arg); | 553 | return hci_sock_blacklist_del(hdev, (void __user *) arg); |
554 | } | 554 | } |
555 | 555 | ||
556 | if (hdev->ioctl) | 556 | return -ENOIOCTLCMD; |
557 | return hdev->ioctl(hdev, cmd, arg); | ||
558 | |||
559 | return -EINVAL; | ||
560 | } | 557 | } |
561 | 558 | ||
562 | static int hci_sock_ioctl(struct socket *sock, unsigned int cmd, | 559 | static int hci_sock_ioctl(struct socket *sock, unsigned int cmd, |