Skip to content

Commit

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

Signed-off-by: Oliver Neukum <oliver@neukum.org>
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 94015f6 commit 5a207b4
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/usb/image/mdc800.c
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@
#include <linux/module.h>
#include <linux/wait.h>
#include <linux/mutex.h>
#include <linux/smp_lock.h>

#include <linux/usb.h>
#include <linux/fs.h>
Expand Down Expand Up @@ -623,7 +622,6 @@ static int mdc800_device_open (struct inode* inode, struct file *file)
int retval=0;
int errn=0;

lock_kernel();
mutex_lock(&mdc800->io_lock);

if (mdc800->state == NOT_CONNECTED)
Expand Down Expand Up @@ -662,7 +660,6 @@ static int mdc800_device_open (struct inode* inode, struct file *file)

error_out:
mutex_unlock(&mdc800->io_lock);
unlock_kernel();
return errn;
}

Expand Down

0 comments on commit 5a207b4

Please sign in to comment.