diff options
| author | 2015-10-12 20:49:20 +0530 | |
|---|---|---|
| committer | 2015-10-12 21:02:25 -0700 | |
| commit | fbeb0dab5e6c3013d176a9070ffa8a1eb250d5f1 (patch) | |
| tree | e4f51dea1fda552619367fb707c7d98e90e31ce0 /scripts/extract-vmlinux | |
| parent | Staging: wilc1000: wilc_wfi_cfgoperations: Remove NULL check before kfree (diff) | |
Staging: wilc1000: linux_wlan: Remove NULL check before kfree
kfree on NULL pointer is a no-op.
The semantic patch used -
// <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>
Signed-off-by: Shraddha Barke <shraddha.6596@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/extract-vmlinux')
0 files changed, 0 insertions, 0 deletions
