mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
usb: fotg210-hcd: remove casting dma_alloc_coherent
Remove casting the values returned by dma_alloc_coherent. Signed-off-by: Xu Wang <vulab@iscas.ac.cn> Link: https://lore.kernel.org/r/20201120083054.8973-1-vulab@iscas.ac.cn Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
21f5b2fb5f
commit
3b78ef0da3
1 changed files with 1 additions and 1 deletions
|
@ -1951,7 +1951,7 @@ static int fotg210_mem_init(struct fotg210_hcd *fotg210, gfp_t flags)
|
|||
goto fail;
|
||||
|
||||
/* Hardware periodic table */
|
||||
fotg210->periodic = (__le32 *)
|
||||
fotg210->periodic =
|
||||
dma_alloc_coherent(fotg210_to_hcd(fotg210)->self.controller,
|
||||
fotg210->periodic_size * sizeof(__le32),
|
||||
&fotg210->periodic_dma, 0);
|
||||
|
|
Loading…
Add table
Reference in a new issue