usb: gadget: udc: net2280: Remove field is_halt
authorRicardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Fri, 28 Nov 2014 13:50:53 +0000 (14:50 +0100)
committerFelipe Balbi <balbi@ti.com>
Mon, 12 Jan 2015 18:13:27 +0000 (12:13 -0600)
Field is_halt is never used by any function.

Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/udc/net2280.c
drivers/usb/gadget/udc/net2280.h

index 653a8a2597a8423c6f832e0877a74d1889cde9cd..48e8d82b5c4c19f51cbf2516a0f4945d39963d2e 100644 (file)
@@ -2643,7 +2643,6 @@ static void ep_stall(struct net2280_ep *ep, int stall)
                       /* BIT(SET_NAK_PACKETS) | */
                       BIT(CLEAR_CONTROL_STATUS_PHASE_HANDSHAKE),
                       &ep->regs->ep_rsp);
-               ep->is_halt = 1;
        } else {
                if (dev->gadget.speed == USB_SPEED_SUPER) {
                        /*
@@ -2663,7 +2662,6 @@ static void ep_stall(struct net2280_ep *ep, int stall)
                writel(val,
                       /* | BIT(CLEAR_NAK_PACKETS),*/
                       &ep->regs->ep_rsp);
-               ep->is_halt = 0;
                val = readl(&ep->regs->ep_rsp);
        }
 }
@@ -2924,9 +2922,7 @@ static void handle_stat0_irqs(struct net2280 *dev, u32 stat)
                }
                ep->stopped = 0;
                dev->protocol_stall = 0;
-               if (dev->quirks & PLX_SUPERSPEED)
-                       ep->is_halt = 0;
-               else{
+               if (!(dev->quirks & PLX_SUPERSPEED)) {
                        if (ep->dev->quirks & PLX_2280)
                                tmp = BIT(FIFO_OVERFLOW) |
                                    BIT(FIFO_UNDERFLOW);
index 4c53b8373dba2153a6fd2143de679c1aceeda283..a16494af72a2a0ff7301eb3d9a665e839f366c49 100644 (file)
@@ -100,7 +100,6 @@ struct net2280_ep {
        dma_addr_t                              td_dma; /* of dummy */
        struct net2280                          *dev;
        unsigned long                           irqs;
-       unsigned is_halt:1;
 
        /* analogous to a host-side qh */
        struct list_head                        queue;