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 /Documentation/devicetree/bindings/usb/usb-hcd.yaml | |
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 <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 'Documentation/devicetree/bindings/usb/usb-hcd.yaml')
0 files changed, 0 insertions, 0 deletions