summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorBhaktipriya Shridhar <bhaktipriya96@gmail.com>2016-02-28 20:28:44 (GMT)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-03-12 06:09:09 (GMT)
commitb242d05fa3ec5baf83f7a51c7c58757fcf36e321 (patch)
treeefcef955e122cf409fb63ffa7b6181cf34c01c57 /Documentation
parent7586170c84de561c7bf05dd0df0c4bf9786417d5 (diff)
downloadlinux-b242d05fa3ec5baf83f7a51c7c58757fcf36e321.tar.xz
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>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions