Skip to contentSkip to conversation

bluetooth: kill unneeded use of BKL ioctl

PATCH New Alan Cox 1 participant 1 message Oct 13, 2009 Bluetooth drivers

lore
Share & tools
lore

Alan Cox

author
#0 lore raw

PATCH 1/1 bluetooth: kill unneeded use of BKL ioctl

If we just return -EINVAL then locking really doesn't matter

---

 drivers/bluetooth/hci_vhci.c |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
drivers/bluetooth/hci_vhci.c +2 -3
index d5cde6d..7dc94a5 100644
@@ -218,8 +218,7 @@ 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)
+static long vhci_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
 {
 	return -EINVAL;
 }
@@ -287,7 +286,7 @@ static const struct file_operations vhci_fops = {
 	.read		= vhci_read,
 	.write		= vhci_write,
 	.poll		= vhci_poll,
-	.ioctl		= vhci_ioctl,
+	.unlocked_ioctl	= vhci_ioctl,
 	.open		= vhci_open,
 	.release	= vhci_release,
 };