Commit c9ae0c91 authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Greg Kroah-Hartman

usb: gadget: renesas_usbhs: fixup bogus conversion

this patch fixup bogus conversion of
8a9775ab
(usb: gadget: renesas_usbhs: fix compile warning)
Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 7fccd480
...@@ -820,7 +820,7 @@ static int usbhsf_dma_prepare_push(struct usbhs_pkt *pkt, int *is_done) ...@@ -820,7 +820,7 @@ static int usbhsf_dma_prepare_push(struct usbhs_pkt *pkt, int *is_done)
if (len % 4) /* 32bit alignment */ if (len % 4) /* 32bit alignment */
goto usbhsf_pio_prepare_push; goto usbhsf_pio_prepare_push;
if ((*(u32 *) pkt->buf + pkt->actual) & 0x7) /* 8byte alignment */ if ((uintptr_t)(pkt->buf + pkt->actual) & 0x7) /* 8byte alignment */
goto usbhsf_pio_prepare_push; goto usbhsf_pio_prepare_push;
/* get enable DMA fifo */ /* get enable DMA fifo */
...@@ -897,7 +897,7 @@ static int usbhsf_dma_try_pop(struct usbhs_pkt *pkt, int *is_done) ...@@ -897,7 +897,7 @@ static int usbhsf_dma_try_pop(struct usbhs_pkt *pkt, int *is_done)
if (!fifo) if (!fifo)
goto usbhsf_pio_prepare_pop; goto usbhsf_pio_prepare_pop;
if ((*(u32 *) pkt->buf + pkt->actual) & 0x7) /* 8byte alignment */ if ((uintptr_t)(pkt->buf + pkt->actual) & 0x7) /* 8byte alignment */
goto usbhsf_pio_prepare_pop; goto usbhsf_pio_prepare_pop;
ret = usbhsf_fifo_select(pipe, fifo, 0); ret = usbhsf_fifo_select(pipe, fifo, 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment