commit | b242d05fa3ec5baf83f7a51c7c58757fcf36e321 | [log] [tgz] |
---|---|---|
author | Bhaktipriya Shridhar <bhaktipriya96@gmail.com> | Mon Feb 29 01:58:44 2016 +0530 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Fri Mar 11 22:09:09 2016 -0800 |
tree | efcef955e122cf409fb63ffa7b6181cf34c01c57 | |
parent | 7586170c84de561c7bf05dd0df0c4bf9786417d5 [diff] |
staging: rts5208: 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>