diff options
author | Bhaktipriya Shridhar <bhaktipriya96@gmail.com> | 2016-02-29 01:59:20 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-03-11 22:09:09 -0800 |
commit | 7570ad910445d3c38bc0a5f0a82606e4861f85a6 (patch) | |
tree | 5a78b418dfb719792a0b3727374928147f53e521 /drivers/staging/rtl8188eu/os_dep | |
parent | 235a01036200992e8719c1f41260b11930448b72 (diff) | |
download | op-kernel-dev-7570ad910445d3c38bc0a5f0a82606e4861f85a6.zip op-kernel-dev-7570ad910445d3c38bc0a5f0a82606e4861f85a6.tar.gz |
staging: rtl8188eu: core: Remove NULL test before vfree
vfree frees the virtually continuous memory area starting at addr.
If addr is NULL, no operation is performed. So NULL test is not needed
before vfree.
This was done using Coccinelle:
@@
expression x;
@@
-if (x != NULL)
vfree(x);
@@
expression x;
@@
-if (x != NULL) {
vfree(x);
x = NULL;
-}
Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8188eu/os_dep')
0 files changed, 0 insertions, 0 deletions