usb: dwc3: gadget: drop useless code
authorFelipe Balbi <balbi@ti.com>
Fri, 17 Feb 2012 09:58:14 +0000 (11:58 +0200)
committerFelipe Balbi <balbi@ti.com>
Wed, 6 Jun 2012 08:21:23 +0000 (11:21 +0300)
We never set CMDIOC bit for Start Transfer
command, so that code will never be used.

Tested-by: Pratyush Anand <pratyush.anand@st.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/gadget.c

index 854f3a3c88320331acc3fce558df6519adb0b6f1..056ace8ab97d6e0abf71c91fcd8cd5b55ef80dc1 100644 (file)
@@ -1765,9 +1765,6 @@ static void dwc3_ep_cmd_compl(struct dwc3_ep *dep,
        case DWC3_DEPCMD_ENDTRANSFER:
                dwc3_process_ep_cmd_complete(dep, event);
                break;
-       case DWC3_DEPCMD_STARTTRANSFER:
-               dep->res_trans_idx = param & 0x7f;
-               break;
        default:
                printk(KERN_ERR "%s() unknown /unexpected type: %d\n",
                                __func__, cmd_type);