Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 063e20eb authored by Oliver Neukum's avatar Oliver Neukum Committed by Greg Kroah-Hartman
Browse files

USB: Remove BKL from usbdev_open()



Locking had long been changed making BKL redundant.
Simply remove it.

Signed-off-by: default avatarOliver Neukum <oliver@neukum.org>
Cc: Alan Stern <stern@rowland.harvard.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 554f7696
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -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;
}