* [PATCH] usb: host: ehci: remove casting dma_alloc_coherent
@ 2021-02-04 7:17 Xu Wang
2021-02-04 9:21 ` Sergei Shtylyov
0 siblings, 1 reply; 2+ messages in thread
From: Xu Wang @ 2021-02-04 7:17 UTC (permalink / raw)
To: stern, gregkh; +Cc: linux-usb, linux-kernel
Remove casting the values returned by dma_alloc_coherent.
Signed-off-by: Xu Wang <vulab@iscas.ac.cn>
---
drivers/usb/host/ehci-mem.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/usb/host/ehci-mem.c b/drivers/usb/host/ehci-mem.c
index 6361d81272bc..769329032257 100644
--- a/drivers/usb/host/ehci-mem.c
+++ b/drivers/usb/host/ehci-mem.c
@@ -185,7 +185,7 @@ static int ehci_mem_init (struct ehci_hcd *ehci, gfp_t flags)
}
/* Hardware periodic table */
- ehci->periodic =
+ ehci->periodic =
dma_alloc_coherent(ehci_to_hcd(ehci)->self.sysdev,
ehci->periodic_size * sizeof(__le32),
&ehci->periodic_dma, flags);
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] usb: host: ehci: remove casting dma_alloc_coherent
2021-02-04 7:17 [PATCH] usb: host: ehci: remove casting dma_alloc_coherent Xu Wang
@ 2021-02-04 9:21 ` Sergei Shtylyov
0 siblings, 0 replies; 2+ messages in thread
From: Sergei Shtylyov @ 2021-02-04 9:21 UTC (permalink / raw)
To: Xu Wang, stern, gregkh; +Cc: linux-usb, linux-kernel
Hello!
On 04.02.2021 10:17, Xu Wang wrote:
> Remove casting the values returned by dma_alloc_coherent.
I'm not seeing any casting, I'm seeing a trailing space removed.
> Signed-off-by: Xu Wang <vulab@iscas.ac.cn>
> ---
> drivers/usb/host/ehci-mem.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/usb/host/ehci-mem.c b/drivers/usb/host/ehci-mem.c
> index 6361d81272bc..769329032257 100644
> --- a/drivers/usb/host/ehci-mem.c
> +++ b/drivers/usb/host/ehci-mem.c
> @@ -185,7 +185,7 @@ static int ehci_mem_init (struct ehci_hcd *ehci, gfp_t flags)
> }
>
> /* Hardware periodic table */
> - ehci->periodic =
> + ehci->periodic =
> dma_alloc_coherent(ehci_to_hcd(ehci)->self.sysdev,
> ehci->periodic_size * sizeof(__le32),
> &ehci->periodic_dma, flags);
MBR, Sergei
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-02-04 9:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-04 7:17 [PATCH] usb: host: ehci: remove casting dma_alloc_coherent Xu Wang
2021-02-04 9:21 ` Sergei Shtylyov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).