mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-04 16:15:11 +00:00
staging: rtl8712: 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: Ilia Mirkin <imirkin@alum.mit.edu> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
e72714fb20
commit
b7977fa250
1 changed files with 1 additions and 2 deletions
|
@ -1873,7 +1873,6 @@ static int r871x_mp_ioctl_hdl(struct net_device *dev,
|
||||||
goto _r871x_mp_ioctl_hdl_exit;
|
goto _r871x_mp_ioctl_hdl_exit;
|
||||||
}
|
}
|
||||||
_r871x_mp_ioctl_hdl_exit:
|
_r871x_mp_ioctl_hdl_exit:
|
||||||
if (pparmbuf != NULL)
|
|
||||||
kfree(pparmbuf);
|
kfree(pparmbuf);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue