diff options
| author | Julia Lawall <[email protected]> | 2020-09-20 11:26:26 +0000 |
|---|---|---|
| committer | Bjorn Helgaas <[email protected]> | 2020-09-30 21:51:32 +0000 |
| commit | eec240e25ab3742624f4909802e4a01a874434c9 (patch) | |
| tree | 86a91280a1d360af86f052c25b71ef9330eb7441 /drivers/pci/controller/pci-v3-semi.c | |
| parent | PCI: Simplify bool comparisons (diff) | |
| download | kernel-eec240e25ab3742624f4909802e4a01a874434c9.tar.gz kernel-eec240e25ab3742624f4909802e4a01a874434c9.zip | |
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/[email protected]
Signed-off-by: Julia Lawall <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Diffstat (limited to 'drivers/pci/controller/pci-v3-semi.c')
0 files changed, 0 insertions, 0 deletions
