diff options
author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2020-06-17 23:11:35 +0200 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2020-06-24 07:56:23 +0200 |
commit | 999a32efed09d724c426568731c5691233d3a680 (patch) | |
tree | 47624246be291b7d2636f84d84f624162c2b583b /drivers/dma/amba-pl08x.c | |
parent | MAINTAINERS: switch dmaengine tree to kernel.org (diff) | |
download | linux-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