[PATCH 02/18] Bluetooth: Remove stub ioctl in hci_vhci

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Marcel Holtmann
Date: Thursday, December 3, 2009 - 11:45 am

From: Thomas Gleixner <tglx@linutronix.de>

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>
---
 drivers/bluetooth/hci_vhci.c |    7 -------
 1 files changed, 0 insertions(+), 7 deletions(-)

diff --git a/drivers/bluetooth/hci_vhci.c b/drivers/bluetooth/hci_vhci.c
index d5cde6d..ff02e90 100644
--- a/drivers/bluetooth/hci_vhci.c
+++ b/drivers/bluetooth/hci_vhci.c
@@ -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;
@@ -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,
 };
-- 
1.6.5.2

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 02/18] Bluetooth: Remove stub ioctl in hci_vhci, Marcel Holtmann, (Thu Dec 3, 11:45 am)
[PATCH 03/18] Bluetooth: Remove unused global minor variable, Marcel Holtmann, (Thu Dec 3, 11:45 am)
[PATCH 08/18] Bluetooth: Unobfuscate tasklet_schedule usage, Marcel Holtmann, (Thu Dec 3, 11:45 am)
[PATCH 11/18] Bluetooth: Fix unset of SrejActioned flag, Marcel Holtmann, (Thu Dec 3, 11:45 am)
[PATCH 12/18] Bluetooth: Fix sending ReqSeq on I-frames, Marcel Holtmann, (Thu Dec 3, 11:45 am)
[PATCH 13/18] Bluetooth: Implement RejActioned flag, Marcel Holtmann, (Thu Dec 3, 11:45 am)