mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-13 14:14:37 +00:00
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: Tapasweni Pathak <tapaswenipathak@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
2c1bfc3be0
commit
a5a89d7a84
1 changed files with 1 additions and 2 deletions
|
@ -2722,8 +2722,7 @@ static void nbu2ss_ep_free_request(
|
|||
if (_req != NULL) {
|
||||
req = container_of(_req, struct nbu2ss_req, req);
|
||||
|
||||
if (req != NULL)
|
||||
kfree(req);
|
||||
kfree(req);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue