Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -468,7 +468,6 @@ int hfi1_user_sdma_free_queues(struct hfi1_filedata *fd)
		fd->pq = NULL;
	}
	if (fd->cq) {
		if (fd->cq->comps)
		vfree(fd->cq->comps);
		kfree(fd->cq);
		fd->cq = NULL;