Browse Source

usb: BKL removal: usblp

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>
Oliver Neukum 15 năm trước cách đây
mục cha
commit
c8b492a86d
1 tập tin đã thay đổi với 0 bổ sung3 xóa
  1. 0 3
      drivers/usb/class/usblp.c

+ 0 - 3
drivers/usb/class/usblp.c

@@ -56,7 +56,6 @@
 #include <linux/slab.h>
 #include <linux/slab.h>
 #include <linux/lp.h>
 #include <linux/lp.h>
 #include <linux/mutex.h>
 #include <linux/mutex.h>
-#include <linux/smp_lock.h>
 #undef DEBUG
 #undef DEBUG
 #include <linux/usb.h>
 #include <linux/usb.h>
 
 
@@ -396,7 +395,6 @@ static int usblp_open(struct inode *inode, struct file *file)
 	if (minor < 0)
 	if (minor < 0)
 		return -ENODEV;
 		return -ENODEV;
 
 
-	lock_kernel();
 	mutex_lock (&usblp_mutex);
 	mutex_lock (&usblp_mutex);
 
 
 	retval = -ENODEV;
 	retval = -ENODEV;
@@ -436,7 +434,6 @@ static int usblp_open(struct inode *inode, struct file *file)
 	}
 	}
 out:
 out:
 	mutex_unlock (&usblp_mutex);
 	mutex_unlock (&usblp_mutex);
-	unlock_kernel();
 	return retval;
 	return retval;
 }
 }