diff options
| author | 2015-10-12 20:49:19 +0530 | |
|---|---|---|
| committer | 2015-10-12 21:02:25 -0700 | |
| commit | cccfc39e5cf502334558ed511873195d5b8df03f (patch) | |
| tree | 1f70e6c04cdf2b810383edd8d59597c8dd983d65 /scripts/patch-kernel | |
| parent | Staging: wilc1000: wilc_msgqueue: Use kmemdup instead of kmalloc and memcpy (diff) | |
Staging: wilc1000: wilc_wfi_cfgoperations: 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/patch-kernel')
0 files changed, 0 insertions, 0 deletions
