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

Commit 483119a7 authored by Mitko Haralanov's avatar Mitko Haralanov Committed by Greg Kroah-Hartman
Browse files

staging/rdma/hfi1: Unconditionally clean-up SDMA queues



There is no need to cleck if the packet queue is allocated
when cleaning up a user context. The hfi1_user_sdma_free_queues()
function already does all the required checks.

Reviewed-by: default avatarIra Weiny <ira.weiny@intel.com>
Signed-off-by: default avatarMitko Haralanov <mitko.haralanov@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2d1900f1
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -731,7 +731,6 @@ static int hfi1_file_close(struct inode *inode, struct file *fp)

	flush_wc();
	/* drain user sdma queue */
	if (fdata->pq)
	hfi1_user_sdma_free_queues(fdata);

	/*