Remove NULL check before kfree
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | Staging: lustre: osc: Remove null check before kfreedrivers/ | +1 | 1 reply | |
| 2/3 | Staging: wilc1000: wilc_wfi_cfgoperations: Remove NULL check before kfreedrivers/ | +25 | 1 reply | |
| 3/3 | Staging: wilc1000: linux_wlan: Remove NULL check before kfreedrivers/ | +2 | 1 reply |
Reviews trailers per patch
1 of 3 patches has a Reviewed-by or Acked-by.
| Patch | Daniel Baluta |
|---|---|
| 1/3 | R-b |
| 2/3 | |
| 3/3 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/3] Remove NULL check before kfree
These patches remove null check before kfree using the Coccinelle script-
// <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>
Shraddha Barke (3):
Staging: lustre: osc: Remove null check before kfree
Staging: wilc1000: wilc_wfi_cfgoperations: Remove NULL check before
kfree
Staging: wilc1000: linux_wlan: Remove NULL check before kfree
drivers/staging/lustre/lustre/osc/osc_request.c | 4 +- drivers/staging/wilc1000/linux_wlan.c | 6 +- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 78 ++++++++--------------- 3 files changed, 28 insertions(+), 60 deletions(-)
Signature · 1 line
2.1.4