2007-12-21 21:14:49

by Daniel Walker

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

No current references, so removing it.

Signed-off-by: Daniel Walker <[email protected]>

---
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;

--