Skip to content

Commit

Permalink
Bluetooth: Remove stub ioctl in hci_vhci
Browse files Browse the repository at this point in the history
Remove the empty ioctl which just returns -EINVAL. vfs_ioctl() will
return -ENOTTY instead, but I doubt that any application will notice
the difference :)

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
  • Loading branch information
Thomas Gleixner authored and Marcel Holtmann committed Dec 3, 2009
1 parent b3cf652 commit 5990108
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions drivers/bluetooth/hci_vhci.c
Original file line number Diff line number Diff line change
Expand Up @@ -218,12 +218,6 @@ static unsigned int vhci_poll(struct file *file, poll_table *wait)
return POLLOUT | POLLWRNORM;
}

static int vhci_ioctl(struct inode *inode, struct file *file,
unsigned int cmd, unsigned long arg)
{
return -EINVAL;
}

static int vhci_open(struct inode *inode, struct file *file)
{
struct vhci_data *data;
Expand Down Expand Up @@ -287,7 +281,6 @@ static const struct file_operations vhci_fops = {
.read = vhci_read,
.write = vhci_write,
.poll = vhci_poll,
.ioctl = vhci_ioctl,
.open = vhci_open,
.release = vhci_release,
};
Expand Down

0 comments on commit 5990108

Please sign in to comment.