Commit a5a89d7a authored by Tapasweni Pathak's avatar Tapasweni Pathak Committed by Greg Kroah-Hartman
Browse files

staging: emxx_udc: 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 avatarTapasweni Pathak <tapaswenipathak@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2c1bfc3b
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -2722,7 +2722,6 @@ static void nbu2ss_ep_free_request(
	if (_req != NULL) {
		req = container_of(_req, struct nbu2ss_req, req);

		if (req != NULL)
		kfree(req);
	}
}