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: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Bhumika Goyal 2016-02-14 20:34:28 +05:30 committed by Greg Kroah-Hartman
parent a4e320b721
commit a4d7d05b2d

View File

@ -468,8 +468,7 @@ int hfi1_user_sdma_free_queues(struct hfi1_filedata *fd)
fd->pq = NULL;
}
if (fd->cq) {
if (fd->cq->comps)
vfree(fd->cq->comps);
vfree(fd->cq->comps);
kfree(fd->cq);
fd->cq = NULL;
}