usb: BKL removal: usblp
authorOliver Neukum <oliver@neukum.org>
Thu, 14 Jan 2010 15:07:37 +0000 (16:07 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 2 Mar 2010 22:54:26 +0000 (14:54 -0800)
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>
drivers/usb/class/usblp.c

index d53f949..93b5f85 100644 (file)
@@ -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>
 
@@ -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;
@@ -436,7 +434,6 @@ static int usblp_open(struct inode *inode, struct file *file)
        }
 out:
        mutex_unlock (&usblp_mutex);
-       unlock_kernel();
        return retval;
 }