diff options
| author | Tudor Ambarus <tudor.ambarus@microchip.com> | 2020-01-23 14:03:02 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-01-09 13:44:54 +0100 |
| commit | f2a0b7677444e12e604ed84b6cecc01ec6228b48 (patch) | |
| tree | 2fc666bab49bf6b7a994fba7293258d82d60c4c7 /drivers | |
| parent | 4d3ba541bede68f9fc3d767396a94cfe20af6fbb (diff) | |
| download | linux-f2a0b7677444e12e604ed84b6cecc01ec6228b48.tar.gz linux-f2a0b7677444e12e604ed84b6cecc01ec6228b48.tar.bz2 linux-f2a0b7677444e12e604ed84b6cecc01ec6228b48.zip | |
dmaengine: at_hdmac: Substitute kzalloc with kmalloc
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>
Diffstat (limited to 'drivers')
| -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 ff366c2f58c1..9f2c377c8d18 100644 --- a/drivers/dma/at_hdmac.c +++ b/drivers/dma/at_hdmac.c @@ -1673,7 +1673,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; |
