projects
/
wrapfs-4.13.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e138a9e
)
dmaengine: at_hdmac: Substitute kzalloc with kmalloc
author
Tudor Ambarus
<tudor.ambarus@microchip.com>
Thu, 23 Jan 2020 14:03:02 +0000
(14:03 +0000)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Sat, 9 Jan 2021 12:43:47 +0000
(13:43 +0100)
commit
a6e7f19c910068cb54983f36acebedb376f3a9ac
upstream.
All members of the structure are initialized below in the function,
there is no need to use kzalloc.
Signed-off-by: Tudor Ambarus <tudor.ambarus@microchip.com>
Acked-by: Ludovic Desroches <ludovic.desroches@microchip.com>
Link:
https://lore.kernel.org/r/20200123140237.125799-1-tudor.ambarus@microchip.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/dma/at_hdmac.c
patch
|
blob
|
history
diff --git
a/drivers/dma/at_hdmac.c
b/drivers/dma/at_hdmac.c
index 86427f6ba78cb91370b889de08bba74dec77c33c..74ce97d1e2660cb3eb04fda1687bcb51fa6dfe65 100644
(file)
--- a/
drivers/dma/at_hdmac.c
+++ b/
drivers/dma/at_hdmac.c
@@
-1683,7
+1683,7
@@
static struct dma_chan *at_dma_xlate(struct of_phandle_args *dma_spec,
dma_cap_zero(mask);
dma_cap_set(DMA_SLAVE, mask);
- atslave = k
z
alloc(sizeof(*atslave), GFP_KERNEL);
+ atslave = k
m
alloc(sizeof(*atslave), GFP_KERNEL);
if (!atslave)
return NULL;