diff options
| author | Julia Lawall <Julia.Lawall@inria.fr> | 2022-03-12 11:27:05 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-03-15 15:24:36 +0100 |
| commit | beb8518e26625a0ab06782519b1d0da429542b22 (patch) | |
| tree | b765011a10befe485d9f39b7c9007e15f74b7285 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | usb: gadget: udc: fix typos in comments (diff) | |
| download | linux-beb8518e26625a0ab06782519b1d0da429542b22.tar.gz linux-beb8518e26625a0ab06782519b1d0da429542b22.zip | |
usb: raw-gadget: use kzalloc
Use kzalloc instead of kmalloc + memset.
The semantic patch that makes this change is:
(https://coccinelle.gitlabpages.inria.fr/website/)
//<smpl>
@@
expression res, size, flag;
@@
- res = kmalloc(size, flag);
+ res = kzalloc(size, flag);
...
- memset(res, 0, size);
//</smpl>
Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
Link: https://lore.kernel.org/r/20220312102705.71413-7-Julia.Lawall@inria.fr
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
