[PATCH 1/4] usb microtek: remove unused semaphore

Daniel Walker
2007-12-21T21:14:49Z

[-- Attachment #1: usb-microtek-remove-unused-semaphore.patch --]
[-- Type: text/plain, Size: 1004 bytes --]

No current references, so removing it.

Signed-off-by: Daniel Walker <dwalker@mvista.com>

---
drivers/usb/image/microtek.c | 1 -
drivers/usb/image/microtek.h | 1 -
2 files changed, 2 deletions(-)

Index: linux-2.6.23/drivers/usb/image/microtek.c
===================================================================
--- linux-2.6.23.orig/drivers/usb/image/microtek.c
+++ linux-2.6.23/drivers/usb/image/microtek.c
@@ -794,7 +794,6 @@ static int mts_usb_probe(struct usb_inte

new_desc->usb_dev = dev;
new_desc->usb_intf = intf;
- init_MUTEX(&new_desc->lock);

/* endpoints */
new_desc->ep_out = ep_out;
Index: linux-2.6.23/drivers/usb/image/microtek.h
===================================================================
--- linux-2.6.23.orig/drivers/usb/image/microtek.h
+++ linux-2.6.23/drivers/usb/image/microtek.h
@@ -39,7 +39,6 @@ struct mts_desc {
u8 ep_image;

struct Scsi_Host * host;
- struct semaphore lock;

struct urb *urb;
struct mts_transfer_context context;

--