Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 275802
b: refs/heads/master
c: c9ae0c9
h: refs/heads/master
v: v3
  • Loading branch information
Kuninori Morimoto authored and Greg Kroah-Hartman committed Nov 14, 2011
1 parent 5bd9701 commit a11fe65
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 7fccd480b7fe84a98ee252fa79dd92f7fff5ec2a
refs/heads/master: c9ae0c91b920a7ba91725d170aa023be8c12db7b
4 changes: 2 additions & 2 deletions trunk/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 a11fe65

Please sign in to comment.