Commit a4d7d05b authored by Bhumika Goyal's avatar Bhumika Goyal Committed by Greg Kroah-Hartman

Staging: rdma: hfi1: Delete NULL check before vfree

The function vfree test whether the argument is NULL and return
immediately. SO NULL test is not needed before vfree.
Signed-off-by: default avatarBhumika Goyal <bhumirks@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a4e320b7
...@@ -468,7 +468,6 @@ int hfi1_user_sdma_free_queues(struct hfi1_filedata *fd) ...@@ -468,7 +468,6 @@ int hfi1_user_sdma_free_queues(struct hfi1_filedata *fd)
fd->pq = NULL; fd->pq = NULL;
} }
if (fd->cq) { if (fd->cq) {
if (fd->cq->comps)
vfree(fd->cq->comps); vfree(fd->cq->comps);
kfree(fd->cq); kfree(fd->cq);
fd->cq = NULL; fd->cq = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment