Commit 9f7ff701 authored by Ilia Mirkin's avatar Ilia Mirkin Committed by Greg Kroah-Hartman

staging: tidspbridge: Remove NULL check before kfree

This patch was generated by the following semantic patch:
// <smpl>
@@ expression E; @@
- if (E != NULL) { kfree(E); }
+ kfree(E);

@@ expression E; @@
- if (E != NULL) { kfree(E); E = NULL; }
+ kfree(E);
+ E = NULL;
// </smpl>
Signed-off-by: default avatarIlia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 39dd3e5d
...@@ -828,7 +828,6 @@ int bridge_chnl_open(struct chnl_object **chnl, ...@@ -828,7 +828,6 @@ int bridge_chnl_open(struct chnl_object **chnl,
free_chirp_list(&pchnl->io_requests); free_chirp_list(&pchnl->io_requests);
free_chirp_list(&pchnl->free_packets_list); free_chirp_list(&pchnl->free_packets_list);
if (sync_event)
kfree(sync_event); kfree(sync_event);
if (pchnl->ntfy_obj) { if (pchnl->ntfy_obj) {
......
...@@ -272,7 +272,6 @@ void dbll_delete(struct dbll_tar_obj *target) ...@@ -272,7 +272,6 @@ void dbll_delete(struct dbll_tar_obj *target)
DBC_REQUIRE(refs > 0); DBC_REQUIRE(refs > 0);
DBC_REQUIRE(zl_target); DBC_REQUIRE(zl_target);
if (zl_target != NULL)
kfree(zl_target); kfree(zl_target);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment