diff options
| author | Amitoj Kaur Chawla <[email protected]> | 2017-07-10 15:27:28 -0400 |
|---|---|---|
| committer | Mauro Carvalho Chehab <[email protected]> | 2017-07-19 16:26:57 -0400 |
| commit | 05f1d92f2b68386a66086b08fc6257c1c143b7ac (patch) | |
| tree | 5192520da63d134313974da8612a992e152823da /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | e19902225473529c8b84579930fe66156cd1f258 (diff) | |
media: staging: atomisp: Use kvfree() instead of kfree()/vfree()
Conditionally calling kfree()/vfree() can be replaced by a call to
kvfree() which handles both kmalloced memory and vmalloced memory.
The resulting wrapper function has been replaced with direct calls
to kvfree().
This change was made with the help of the following Coccinelle
semantic patch:
//<smpl>
@@
expression a;
@@
- if(...) { vfree(a); }
- else { kfree(a); }
+ kvfree(a);
// </smpl>
Signed-off-by: Amitoj Kaur Chawla <[email protected]>
Signed-off-by: Sakari Ailus <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions