Skip to content

Commit

Permalink
dmaengine: at_hdmac: Substitute kzalloc with kmalloc
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
ambarus authored and vinodkoul committed Feb 25, 2020
1 parent 14ccf0a commit a6e7f19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/dma/at_hdmac.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit a6e7f19

Please sign in to comment.