diff options
| author | Julia Lawall <[email protected]> | 2020-09-20 11:26:15 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2020-09-21 02:09:11 +0000 |
| commit | d4ceb8de805ce46b9f3931ef58bdf0b5bdea8366 (patch) | |
| tree | 4485ddc69af0d150f8a059a851afa7f251eb30f5 /net/unix/af_unix.c | |
| parent | Merge branch 'DSA-with-VLAN-filtering-and-offloading-masters' (diff) | |
| download | kernel-d4ceb8de805ce46b9f3931ef58bdf0b5bdea8366.tar.gz kernel-d4ceb8de805ce46b9f3931ef58bdf0b5bdea8366.zip | |
dpaa2-eth: drop double zeroing
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,n,flags;
@@
x =
- kcalloc
+ kmalloc_array
(n,sizeof(struct scatterlist),flags)
...
sg_init_table(x,n)
// </smpl>
Signed-off-by: Julia Lawall <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
