Commit c9ae0c91b920a7ba91725d170aa023be8c12db7b
Committed by
Greg Kroah-Hartman
1 parent
7fccd480b7
Exists in
master
and in
6 other branches
usb: gadget: renesas_usbhs: fixup bogus conversion
this patch fixup bogus conversion of 8a9775ab71218690ac34bed9e237e2b968857d3a (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>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
drivers/usb/renesas_usbhs/fifo.c
... | ... | @@ -820,7 +820,7 @@ |
820 | 820 | if (len % 4) /* 32bit alignment */ |
821 | 821 | goto usbhsf_pio_prepare_push; |
822 | 822 | |
823 | - if ((*(u32 *) pkt->buf + pkt->actual) & 0x7) /* 8byte alignment */ | |
823 | + if ((uintptr_t)(pkt->buf + pkt->actual) & 0x7) /* 8byte alignment */ | |
824 | 824 | goto usbhsf_pio_prepare_push; |
825 | 825 | |
826 | 826 | /* get enable DMA fifo */ |
... | ... | @@ -897,7 +897,7 @@ |
897 | 897 | if (!fifo) |
898 | 898 | goto usbhsf_pio_prepare_pop; |
899 | 899 | |
900 | - if ((*(u32 *) pkt->buf + pkt->actual) & 0x7) /* 8byte alignment */ | |
900 | + if ((uintptr_t)(pkt->buf + pkt->actual) & 0x7) /* 8byte alignment */ | |
901 | 901 | goto usbhsf_pio_prepare_pop; |
902 | 902 | |
903 | 903 | ret = usbhsf_fifo_select(pipe, fifo, 0); |