diff options
| author | Julia Lawall <[email protected]> | 2022-03-12 11:27:05 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2022-03-15 15:24:36 +0100 |
| commit | beb8518e26625a0ab06782519b1d0da429542b22 (patch) | |
| tree | b765011a10befe485d9f39b7c9007e15f74b7285 /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | 32d8bb3ed80b6b8eda50d75ae2475e2e9b6113d2 (diff) | |
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions