Skip to content

Remove NULL check before kfree

Shraddha Barke outreachy 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Staging: lustre: osc: Remove null check before kfreedrivers/staging/lustre/lustre/osc/osc_request.c+1 -31 reply
2/3Staging: wilc1000: wilc_wfi_cfgoperations: Remove NULL check before kfreedrivers/staging/wilc1000/wilc_wfi_cfgoperations.c+25 -531 reply
3/3Staging: wilc1000: linux_wlan: Remove NULL check before kfreedrivers/staging/wilc1000/linux_wlan.c+2 -41 reply

Reviews trailers per patch

1 of 3 patches has a Reviewed-by or Acked-by.

PatchDaniel Baluta
1/3R-b
2/3
3/3

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

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