projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b851f7c
)
usb: host: fotg210: Make use of dma_pool_zalloc() instead of dma_pool_alloc/memset()
author
Cai Huoqing
<caihuoqing@baidu.com>
Mon, 18 Oct 2021 13:17:08 +0000
(21:17 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 21 Oct 2021 10:47:55 +0000
(12:47 +0200)
Replacing dma_pool_alloc/memset() with dma_pool_zalloc()
to simplify the code.
Signed-off-by: Cai Huoqing <caihuoqing@baidu.com>
Link:
https://lore.kernel.org/r/20211018131709.487-1-caihuoqing@baidu.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/fotg210-hcd.c
patch
|
blob
|
history
diff --git
a/drivers/usb/host/fotg210-hcd.c
b/drivers/usb/host/fotg210-hcd.c
index 296452625488b1dac2745e6f1f7200538fd5abd6..b590995a6b3e932ebe263a1465be6fa62648259e 100644
(file)
--- a/
drivers/usb/host/fotg210-hcd.c
+++ b/
drivers/usb/host/fotg210-hcd.c
@@
-1859,10
+1859,9
@@
static struct fotg210_qh *fotg210_qh_alloc(struct fotg210_hcd *fotg210,
if (!qh)
goto done;
qh->hw = (struct fotg210_qh_hw *)
- dma_pool_alloc(fotg210->qh_pool, flags, &dma);
+ dma_pool_
z
alloc(fotg210->qh_pool, flags, &dma);
if (!qh->hw)
goto fail;
- memset(qh->hw, 0, sizeof(*qh->hw));
qh->qh_dma = dma;
INIT_LIST_HEAD(&qh->qtd_list);