Skip to content

Commit

Permalink
usb: gadget: renesas_usbhs: fixup bogus conversion
Browse files Browse the repository at this point in the history
this patch fixup bogus conversion of
8a9775a
(usb: gadget: renesas_usbhs: fix compile warning)

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Kuninori Morimoto authored and Greg Kroah-Hartman committed Nov 14, 2011
1 parent 7fccd48 commit c9ae0c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/usb/renesas_usbhs/fifo.c
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,7 @@ static int usbhsf_dma_prepare_push(struct usbhs_pkt *pkt, int *is_done)
if (len % 4) /* 32bit alignment */
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;

/* get enable DMA fifo */
Expand Down Expand Up @@ -897,7 +897,7 @@ static int usbhsf_dma_try_pop(struct usbhs_pkt *pkt, int *is_done)
if (!fifo)
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;

ret = usbhsf_fifo_select(pipe, fifo, 0);
Expand Down

0 comments on commit c9ae0c9

Please sign in to comment.