Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp285591pxk; Wed, 23 Sep 2020 03:14:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwrpfBz/zGytXvVaiYcfNX3vhqKR2K+kiXZxCI45I/rTMwbs4ttO/2R0IG7mM4dHNucnnYH X-Received: by 2002:aa7:d68c:: with SMTP id d12mr9068735edr.274.1600856046516; Wed, 23 Sep 2020 03:14:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600856046; cv=none; d=google.com; s=arc-20160816; b=yia/sdeIMkXNKX9hlfYTzOTMFTZSgw/H65AM3kqdeaS9FWHwEQJ5op5+54xJxT4dX3 INUyLRWucLhZbZzLHic1lJrqc0oN3wEKE8jUar0Hg5UsxBoQtt5Dws2ZiOAlUnKlg8XY 8X4Y7xak5I9UHHQcIf0UUXZrdDrCj3MFF1RtgmeKoCeVmE5SdtwvqFrWiYhVXaar+Tdj dA+xNsA3K3xtcQAXMw9SLs3gPMusxZmz3W0H9e8oncnMVoXx8dj41odP8qOrLl+DH6Aa fPQ9tZUgL98uTWXNV2GXmg1WwUuIUFUkt6Xhd1m0corr71uDnCeq3Yif3CuuaTTmDFXD 7OEg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=Lww8lB06X12X/wYaGUVa+gCiBfMI2Y97hQKAkszmRJ4=; b=TALdN4rvHuDAHxk+QYltFlW5hG6ScD8I7yl/xBb51LF1HMSlmO/hil+/g36tg1LH3b nC4/wBzh7V0wnEipKEAw7c14BPTMAc5MlThyUvISBwQNlulnPCxOW1kztjGb5nul7KSJ uxIYRQCF9WMirCJDMl/VfASeVC+gJEONLSTvv/O4zpvRy+F2j6tYjlYNqRV7S3jb9bxj kfUlNYJm+tj/dpMlXIYBJLpx7c1Umb2e0bUWCT0vCMQOPLM8STBbOxrX5o4Xf+S8h6AV xvVQqGstnUkuR2HNuqsyjS3OJNkYAAY2we4jAF+L6Pb+xc1iHgX/beQzFYZ4GAlt5la/ CF4w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id wr19si12785554ejb.60.2020.09.23.03.13.42; Wed, 23 Sep 2020 03:14:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726762AbgIWKKv (ORCPT + 99 others); Wed, 23 Sep 2020 06:10:51 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:39432 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726415AbgIWKKt (ORCPT ); Wed, 23 Sep 2020 06:10:49 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id E099DDF180A020A14AD3; Wed, 23 Sep 2020 18:10:47 +0800 (CST) Received: from localhost.localdomain (10.67.165.24) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.487.0; Wed, 23 Sep 2020 18:10:38 +0800 From: Kai Ye To: , , , CC: Kai Ye Subject: [PATCH v3 1/2] uacce: delete some redundant code. Date: Wed, 23 Sep 2020 18:09:21 +0800 Message-ID: <1600855762-10031-2-git-send-email-yekai13@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1600855762-10031-1-git-send-email-yekai13@huawei.com> References: <1600855762-10031-1-git-send-email-yekai13@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Delete some redundant code. Signed-off-by: Kai Ye Reviewed-by: Zhou Wang Reviewed-by: Jonathan Cameron Acked-by: Zhangfei Gao --- drivers/misc/uacce/uacce.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/drivers/misc/uacce/uacce.c b/drivers/misc/uacce/uacce.c index 107028e..9b83bc5 100644 --- a/drivers/misc/uacce/uacce.c +++ b/drivers/misc/uacce/uacce.c @@ -239,17 +239,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; -- 2.8.1