mirror of https://gitee.com/openkylin/linux.git
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: Ira Weiny <ira.weiny@intel.com> Signed-off-by: Mitko Haralanov <mitko.haralanov@intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
2d1900f131
commit
483119a760
|
@ -731,8 +731,7 @@ static int hfi1_file_close(struct inode *inode, struct file *fp)
|
||||||
|
|
||||||
flush_wc();
|
flush_wc();
|
||||||
/* drain user sdma queue */
|
/* drain user sdma queue */
|
||||||
if (fdata->pq)
|
hfi1_user_sdma_free_queues(fdata);
|
||||||
hfi1_user_sdma_free_queues(fdata);
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Clear any left over, unhandled events so the next process that
|
* Clear any left over, unhandled events so the next process that
|
||||||
|
|
Loading…
Reference in New Issue