Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp3115884pxx; Sun, 1 Nov 2020 23:39:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJzBTpCtNQden1+LcDjdP5bBHvPHdA6Ms+HlAXZf79SMDDCyHQHFMfnhZ/PUUNQx7WU/TUGq X-Received: by 2002:a17:906:ad8e:: with SMTP id la14mr1079254ejb.264.1604302773897; Sun, 01 Nov 2020 23:39:33 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604302773; cv=none; d=google.com; s=arc-20160816; b=ye9KDAY7Zs88r6xzebRh1a6R6TXUEwEufXbBoMUAi7eziUpCVOYQ2+U4o5T37AR4Fc 76qMTuVn7kPhzn/JlIfO58zyktdhI7yZAJ1Nw2IwFtVH52QcCfg9FdV+J/+QFOYnyHhy 3I4wR/ZrRTSu32k9SaIgfJ+pLeM+DfzBZsB6eAqu0SNNnoN786/9/yCjm0GA/eIWxg9e pZq6oAh1wbwz2byX0aLSkD5MY4+4YbJAJME5rWiNYXox590hpX2Rhvk4PzCXg9foSzFz MHLAv2uMzWEfu5+o8lw8FVPkvUHF8/qjpZJdy4wm+FEfhEMoWRHEG4D6peZwp2TTtXnU M6yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:to:subject; bh=t+AvenN8WoaEF7ZCYiRqrIOe/zwURfHe1o+fiFGwsI8=; b=O3lyaD9lFdiKcYLQgTCT4IKOrXtNhLHCA49aKYpTP741yrL/UfMuJegq7skPtDyEOD tqg2Mb/8g7PlqTK2x9RR9Tx/9mz73qHkMlBv1ldJWWob7E1qo6Ps31po3UTm3YPbZid0 5PjcsrZ2kulYptaqZQWwC2jmyrQqJcjfKy1CMYvhVdupnVU5L/ywQPY0M86iJbEpK8XM ocZcCFyJvWmcinE6V3Sk63ZXrauWw9ckYzTb9yDmVLHTqBhwuBFnMLofXydTY8FlIYPg iMUwaUWEcSgUO9CmU/SVBjyqhsZaRVa1fW6QfOFvKoZig4Yu4N5LSCX6YnjrlHLz7134 eqZg== 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 bq7si9562207ejb.212.2020.11.01.23.39.10; Sun, 01 Nov 2020 23:39:33 -0800 (PST) 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 S1728131AbgKBHhU (ORCPT + 99 others); Mon, 2 Nov 2020 02:37:20 -0500 Received: from szxga04-in.huawei.com ([45.249.212.190]:6725 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728029AbgKBHhU (ORCPT ); Mon, 2 Nov 2020 02:37:20 -0500 Received: from DGGEMS413-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4CPl9k5112zkdRv; Mon, 2 Nov 2020 15:37:14 +0800 (CST) Received: from [10.63.139.185] (10.63.139.185) by DGGEMS413-HUB.china.huawei.com (10.3.19.213) with Microsoft SMTP Server id 14.3.487.0; Mon, 2 Nov 2020 15:37:10 +0800 Subject: Re: [PATCH v3 1/2] uacce: delete some redundant code. To: Kai Ye , , , , , Greg Kroah-Hartman References: <1600855762-10031-1-git-send-email-yekai13@huawei.com> <1600855762-10031-2-git-send-email-yekai13@huawei.com> From: Zhou Wang Message-ID: <5F9FB725.5000002@hisilicon.com> Date: Mon, 2 Nov 2020 15:37:09 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <1600855762-10031-2-git-send-email-yekai13@huawei.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.63.139.185] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/9/23 18:09, Kai Ye wrote: > 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; > Hi Hartman, Could you take this patch? Best, Zhou