diff options
-rw-r--r-- | drivers/usb/renesas_usbhs/fifo.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/usb/renesas_usbhs/fifo.c b/drivers/usb/renesas_usbhs/fifo.c index 03a9cc529c82..fb2a88c5c210 100644 --- a/drivers/usb/renesas_usbhs/fifo.c +++ b/drivers/usb/renesas_usbhs/fifo.c | |||
@@ -76,8 +76,7 @@ void usbhs_pkt_push(struct usbhs_pipe *pipe, struct usbhs_pkt *pkt, | |||
76 | pipe->handler = &usbhsf_null_handler; | 76 | pipe->handler = &usbhsf_null_handler; |
77 | } | 77 | } |
78 | 78 | ||
79 | list_del_init(&pkt->node); | 79 | list_move_tail(&pkt->node, &pipe->list); |
80 | list_add_tail(&pkt->node, &pipe->list); | ||
81 | 80 | ||
82 | /* | 81 | /* |
83 | * each pkt must hold own handler. | 82 | * each pkt must hold own handler. |
@@ -107,7 +106,7 @@ static struct usbhs_pkt *__usbhsf_pkt_get(struct usbhs_pipe *pipe) | |||
107 | if (list_empty(&pipe->list)) | 106 | if (list_empty(&pipe->list)) |
108 | return NULL; | 107 | return NULL; |
109 | 108 | ||
110 | return list_entry(pipe->list.next, struct usbhs_pkt, node); | 109 | return list_first_entry(&pipe->list, struct usbhs_pkt, node); |
111 | } | 110 | } |
112 | 111 | ||
113 | struct usbhs_pkt *usbhs_pkt_pop(struct usbhs_pipe *pipe, struct usbhs_pkt *pkt) | 112 | struct usbhs_pkt *usbhs_pkt_pop(struct usbhs_pipe *pipe, struct usbhs_pkt *pkt) |