mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-02-05 03:35:55 +07:00
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:
parent
a4e320b721
commit
a4d7d05b2d
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user