Re: [PATCH 2/2] usb: chipidea: udc: delete useless code

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

 



Hello.

On 04-05-2014 9:31, Peter Chen wrote:

Delete usbless code

   You probably wanted to type "useless"?

Signed-off-by: Peter Chen <peter.chen@xxxxxxxxxxxxx>
---
  drivers/usb/chipidea/udc.c |    1 -
  1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/drivers/usb/chipidea/udc.c b/drivers/usb/chipidea/udc.c
index d683968..69425b3 100644
--- a/drivers/usb/chipidea/udc.c
+++ b/drivers/usb/chipidea/udc.c
@@ -825,7 +825,6 @@ __acquires(hwep->lock)
  	if ((setup->bRequestType & USB_RECIP_MASK) == USB_RECIP_DEVICE) {
  		/* Assume that device is bus powered for now. */
  		*(u16 *)req->buf = ci->remote_wakeup << 1;
-		retval = 0;
  	} else if ((setup->bRequestType & USB_RECIP_MASK) \
  		   == USB_RECIP_ENDPOINT) {
  		dir = (le16_to_cpu(setup->wIndex) & USB_ENDPOINT_DIR_MASK) ?

WBR, Sergei

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