From: Oliver Neukum Date: Thu, 14 Jan 2010 15:08:13 +0000 (+0100) Subject: USB: BKL removal: usb-skeleton X-Git-Tag: firefly_0821_release~9833^2~3037^2~83 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=b92a97efe00cf4e3555585f40dbe96512bba8f95;p=firefly-linux-kernel-4.4.55.git USB: BKL removal: usb-skeleton BKL not needed at all. Removed without replacement. Signed-off-by: Oliver Neukum Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/usb-skeleton.c b/drivers/usb/usb-skeleton.c index e94176bfd272..61522787f39c 100644 --- a/drivers/usb/usb-skeleton.c +++ b/drivers/usb/usb-skeleton.c @@ -18,7 +18,6 @@ #include #include #include -#include #include #include #include @@ -91,7 +90,6 @@ static int skel_open(struct inode *inode, struct file *file) int subminor; int retval = 0; - lock_kernel(); subminor = iminor(inode); interface = usb_find_interface(&skel_driver, subminor); @@ -137,7 +135,6 @@ static int skel_open(struct inode *inode, struct file *file) mutex_unlock(&dev->io_mutex); exit: - unlock_kernel(); return retval; }