diff options
author | Tudor Ambarus <tudor.ambarus@microchip.com> | 2020-01-23 14:03:02 +0000 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2020-02-25 11:27:27 +0530 |
commit | a6e7f19c910068cb54983f36acebedb376f3a9ac (patch) | |
tree | 910f2e4cc8a602aef984e1301d4f9b54ce7638eb /drivers/dma/at_hdmac.c | |
parent | 14ccf0aab46e1888e2f45b6e995c621c70b32651 (diff) | |
download | linux-stable-a6e7f19c910068cb54983f36acebedb376f3a9ac.tar.gz linux-stable-a6e7f19c910068cb54983f36acebedb376f3a9ac.tar.bz2 linux-stable-a6e7f19c910068cb54983f36acebedb376f3a9ac.zip |
dmaengine: at_hdmac: Substitute kzalloc with kmalloc
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>
Diffstat (limited to 'drivers/dma/at_hdmac.c')
-rw-r--r-- | drivers/dma/at_hdmac.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/dma/at_hdmac.c b/drivers/dma/at_hdmac.c index 672c73b4a2d4..cad6dcd9cfb5 100644 --- a/drivers/dma/at_hdmac.c +++ b/drivers/dma/at_hdmac.c @@ -1671,7 +1671,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 = kzalloc(sizeof(*atslave), GFP_KERNEL); + atslave = kmalloc(sizeof(*atslave), GFP_KERNEL); if (!atslave) return NULL; |