diff options
| author | Gustavo A. R. Silva <gustavoars@kernel.org> | 2020-06-18 00:11:35 +0300 |
|---|---|---|
| committer | Vinod Koul <vkoul@kernel.org> | 2020-06-24 08:56:23 +0300 |
| commit | 999a32efed09d724c426568731c5691233d3a680 (patch) | |
| tree | 47624246be291b7d2636f84d84f624162c2b583b /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | 09c16edc5a3dc2bcfa8a93ddbeec59793e3b414d (diff) | |
| download | linux-999a32efed09d724c426568731c5691233d3a680.tar.xz | |
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 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions
