Commit a67c43ac authored by Kai Ye's avatar Kai Ye Committed by Greg Kroah-Hartman
Browse files
parent 8bd16069
Loading
Loading
Loading
Loading
+0 −11
Original line number Diff line number Diff line
@@ -231,17 +231,6 @@ static int uacce_fops_mmap(struct file *filep, struct vm_area_struct *vma)

	switch (type) {
	case UACCE_QFRT_MMIO:
		if (!uacce->ops->mmap) {
			ret = -EINVAL;
			goto out_with_lock;
		}

		ret = uacce->ops->mmap(q, vma, qfr);
		if (ret)
			goto out_with_lock;

		break;

	case UACCE_QFRT_DUS:
		if (!uacce->ops->mmap) {
			ret = -EINVAL;