Skip to content

Commit

Permalink
usb: BKL removal: usblp
Browse files Browse the repository at this point in the history
BKL was not needed at all. Removed without replacement.

Signed-off-by: Oliver Neukum <oliver@neukum.org>
Acked-by: Pete Zaitcev <zaitcev@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Oliver Neukum authored and Greg Kroah-Hartman committed Mar 2, 2010
1 parent 4e0961d commit c8b492a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/usb/class/usblp.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@
#include <linux/slab.h>
#include <linux/lp.h>
#include <linux/mutex.h>
#include <linux/smp_lock.h>
#undef DEBUG
#include <linux/usb.h>

Expand Down Expand Up @@ -396,7 +395,6 @@ static int usblp_open(struct inode *inode, struct file *file)
if (minor < 0)
return -ENODEV;

lock_kernel();
mutex_lock (&usblp_mutex);

retval = -ENODEV;
Expand Down Expand Up @@ -436,7 +434,6 @@ static int usblp_open(struct inode *inode, struct file *file)
}
out:
mutex_unlock (&usblp_mutex);
unlock_kernel();
return retval;
}

Expand Down

0 comments on commit c8b492a

Please sign in to comment.