diff options
| author | Tapasweni Pathak <[email protected]> | 2014-10-30 21:08:09 +0530 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2014-10-30 13:12:05 -0700 |
| commit | a055b3cbb72d2487938d3452c79e2a338088fbc1 (patch) | |
| tree | 1050228064897fc249a5c018a730163feaf39158 /tools/perf/scripts/python | |
| parent | 7ede7af3fd5f92966d328586f7f42b378fa17d83 (diff) | |
staging: rtl8188eu: core: Remove null check before kfree
kfree on NULL pointer is a no-op.
This patch uses the following semantic patch to find such an instance
where NULL check is present before kfree.
// <smpl>
@@ expression E; @@
- if (E != NULL) { kfree(E); }
+ kfree(E);
@@ expression E; @@
- if (E != NULL) { kfree(E); E = NULL; }
+ kfree(E);
+ E = NULL;
// </smpl>smpl>
Build tested it.
Signed-off-by: Tapasweni Pathak <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions