diff options
author | Julia Lawall <Julia.Lawall@inria.fr> | 2020-09-20 14:26:26 +0300 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2020-10-01 00:51:32 +0300 |
commit | eec240e25ab3742624f4909802e4a01a874434c9 (patch) | |
tree | 86a91280a1d360af86f052c25b71ef9330eb7441 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 0a98bb98f2c7a47563f71770e458902ec211a6cf (diff) | |
download | linux-eec240e25ab3742624f4909802e4a01a874434c9.tar.xz |
PCI/P2PDMA: Drop double zeroing for sg_init_table()
sg_init_table() zeroes its first argument, so the allocation of that
argument doesn't have to.
The semantic patch that makes this change is as follows:
(http://coccinelle.lip6.fr/)
// <smpl>
@@
expression x;
@@
x =
- kzalloc
+ kmalloc
(...)
...
sg_init_table(x,...)
// </smpl>
Link: https://lore.kernel.org/r/1600601186-7420-15-git-send-email-Julia.Lawall@inria.fr
Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions