summaryrefslogtreecommitdiffstats
path: root/drivers/usb/core
diff options
context:
space:
mode:
authorOliver Neukum <oliver@neukum.org>2010-01-13 15:31:48 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2010-03-02 14:54:22 -0800
commit063e20eb980f281d8456c3b48f146107f5cb2338 (patch)
tree9fcc19ff66ec0a64e4e20c3b62fdb542b6c20394 /drivers/usb/core
parent554f76962d3a6eb5110415f1591aca83f96a84ae (diff)
USB: Remove BKL from usbdev_open()
Locking had long been changed making BKL redundant. Simply remove it. Signed-off-by: Oliver Neukum <oliver@neukum.org> Cc: Alan Stern <stern@rowland.harvard.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/core')
-rw-r--r--drivers/usb/core/devio.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/usb/core/devio.c b/drivers/usb/core/devio.c
index 825e0abfed0..6e731507c0c 100644
--- a/drivers/usb/core/devio.c
+++ b/drivers/usb/core/devio.c
@@ -653,8 +653,6 @@ static int usbdev_open(struct inode *inode, struct file *file)
const struct cred *cred = current_cred();
int ret;
- lock_kernel();
-
ret = -ENOMEM;
ps = kmalloc(sizeof(struct dev_state), GFP_KERNEL);
if (!ps)
@@ -713,7 +711,6 @@ static int usbdev_open(struct inode *inode, struct file *file)
usb_unlock_device(dev);
snoop(&dev->dev, "opened by process %d: %s\n", task_pid_nr(current),
current->comm);
- unlock_kernel();
return ret;
out_unlock_device:
@@ -721,7 +718,6 @@ static int usbdev_open(struct inode *inode, struct file *file)
usb_put_dev(dev);
out_free_ps:
kfree(ps);
- unlock_kernel();
return ret;
}