usb: gadget: renesas_usbhs: fix compile warning
| drivers/usb/renesas_usbhs/fifo.c: In function ‘usbhsf_dma_prepare_push’: | drivers/usb/renesas_usbhs/fifo.c:823:7: warning: cast from pointer \ to integer of different size [-Wpointer-to-int-cast] | drivers/usb/renesas_usbhs/fifo.c: In function ‘usbhsf_dma_try_pop’: | drivers/usb/renesas_usbhs/fifo.c:900:7: warning: cast from pointer \ to integer of different size [-Wpointer-to-int-cast] Signed-off-by: Felipe Balbi <balbi@ti.com>
This commit is contained in:
Родитель
d242c110c4
Коммит
8a9775ab71
|
@ -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 ((*(u32 *) 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)
|
||||||
if (!fifo)
|
if (!fifo)
|
||||||
goto usbhsf_pio_prepare_pop;
|
goto usbhsf_pio_prepare_pop;
|
||||||
|
|
||||||
if (((u32)pkt->buf + pkt->actual) & 0x7) /* 8byte alignment */
|
if ((*(u32 *) 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);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче