[PATCH 2/3] USB: s3c2410_udc: dead code cleanup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



There is no place for dev->req_pending usage in the driver for now.

Signed-off-by: Vladimir Zapolskiy <vzapolskiy@xxxxxxxxx>
---
 drivers/usb/gadget/s3c2410_udc.c |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/drivers/usb/gadget/s3c2410_udc.c b/drivers/usb/gadget/s3c2410_udc.c
index b1b4d00..969d677 100644
--- a/drivers/usb/gadget/s3c2410_udc.c
+++ b/drivers/usb/gadget/s3c2410_udc.c
@@ -654,7 +654,6 @@ static void s3c2410_udc_handle_ep0_idle(struct s3c2410_udc *dev,
 	dev->req_std = (crq->bRequestType & USB_TYPE_MASK)
 		== USB_TYPE_STANDARD;
 	dev->req_config = 0;
-	dev->req_pending = 1;
 
 	switch (crq->bRequest) {
 	case USB_REQ_SET_CONFIGURATION:
@@ -753,9 +752,6 @@ static void s3c2410_udc_handle_ep0_idle(struct s3c2410_udc *dev,
 		s3c2410_udc_set_ep0_de_out(base_addr);
 		dev->ep0state = EP0_IDLE;
 		/* deferred i/o == no response yet */
-	} else if (dev->req_pending) {
-		dprintk(DEBUG_VERBOSE, "dev->req_pending... what now?\n");
-		dev->req_pending=0;
 	}
 
 	dprintk(DEBUG_VERBOSE, "ep0state %s\n", ep0states[dev->ep0state]);
-- 
1.7.0.3

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux