diff options
author | Kai Ye <yekai13@huawei.com> | 2020-11-02 12:39:24 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-11-09 20:41:03 +0300 |
commit | a67c43ac37f80b5e7e1876e8f5f7df62027445c8 (patch) | |
tree | 3b1b752d86b38a3ab3cce5ef27d81dd6f41701ba /drivers/misc/uacce/uacce.c | |
parent | 8bd160690a6c064fd4459d006e50ba7cc7a7669c (diff) | |
download | linux-a67c43ac37f80b5e7e1876e8f5f7df62027445c8.tar.xz |
uacce: delete some redundant code.
Delete some redundant code.
Reviewed-by: Zhou Wang <wangzhou1@hisilicon.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@Huawei.com>
Acked-by: Zhangfei Gao <zhangfei.gao@linaro.org>
Signed-off-by: Kai Ye <yekai13@huawei.com>
Link: https://lore.kernel.org/r/1604309965-21752-2-git-send-email-yekai13@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/uacce/uacce.c')
-rw-r--r-- | drivers/misc/uacce/uacce.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/drivers/misc/uacce/uacce.c b/drivers/misc/uacce/uacce.c index 56dd98ab5a81..eb827f18c031 100644 --- a/drivers/misc/uacce/uacce.c +++ b/drivers/misc/uacce/uacce.c @@ -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; |