summaryrefslogtreecommitdiffstats
path: root/drivers/dma/amba-pl08x.c
diff options
context:
space:
mode:
authorGustavo A. R. Silva <gustavoars@kernel.org>2020-06-17 23:11:35 +0200
committerVinod Koul <vkoul@kernel.org>2020-06-24 07:56:23 +0200
commit999a32efed09d724c426568731c5691233d3a680 (patch)
tree47624246be291b7d2636f84d84f624162c2b583b /drivers/dma/amba-pl08x.c
parentMAINTAINERS: switch dmaengine tree to kernel.org (diff)
downloadlinux-999a32efed09d724c426568731c5691233d3a680.tar.xz
linux-999a32efed09d724c426568731c5691233d3a680.zip
dmaengine: hisilicon: Use struct_size() in devm_kzalloc()
Make use of the struct_size() helper instead of an open-coded version in order to avoid any potential type mistakes. This code was detected with the help of Coccinelle and, audited and fixed manually. Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org> Reviewed-by: Zhou Wang <wangzhou1@hisilicon.com> Link: https://lore.kernel.org/r/20200617211135.GA8660@embeddedor Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/dma/amba-pl08x.c')
0 files changed, 0 insertions, 0 deletions