Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp2383636ybg; Thu, 30 Jul 2020 19:44:29 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzz1F5+3q19FYZ+3W+JfJRa+XGPbGgRg4mU/bmf3hJLhcH5KMm8Fgec6RwHXawOsovbXzuy X-Received: by 2002:aa7:d6c9:: with SMTP id x9mr1777807edr.135.1596163468897; Thu, 30 Jul 2020 19:44:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596163468; cv=none; d=google.com; s=arc-20160816; b=N37k40SBI58Pt92J7sRmXdQRnx4JRnxQNtF/sYLwQyKThoZzD17aE5+SIDuGgN54J7 3/WHu4wDWeF6www5511JnjofpNIcJBGLMxW0M4c+Fr1K71GoZjWnHz7sblgvpfMQbNkI RRAzUytX7VKlNd5TmxvFiGUbWOFLHkz2+M0WsS2J4rliuApDHQX8VXGh2TFFYpjyZiOb KfFGJURO/fTUEDTEYPteWv6ndgOkNr794JCT9FlSxdJKm0kAc9Gi6iPzgwHrhIPetqKO axDdWRYuNTSi2XM+MQDgByU0D5vEww2KzlZXTyUvcECCD5itpOlRYDce/1l1CEgKLGiN frrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:references:to:subject; bh=nQvR6iSDMuG8hvpeW/sZkOMcTFL2NMY9z3dUsRqyFnE=; b=nAFoBH0ZgSb8aDFFCW+PnguJs2WSOI1ggMQqnrlm8OEIcljNoqQeoIaKpc6yYWssAf JznK0DpmffBfO+rNTgjXBKO4IWGEp5AfnbsxTF7C3NVGPtzRMS4GXmqRsV/C5lEW1UdU MtS7+1kWIJI3DH946HIsf3KLxp5yfhamAZ7geWTZDHM65C9k6fekJ2VnBkUvLOAHQzXZ zDgc5yGCGCkTrFiiFW1ap2RxlgjkCIFXVW+OqpSW6Z0UnswiQN5YUpU+dzTVSB63B6T1 YsxQDooBEoRFDAAZXUnJuBUy2jZi+YglrFbbVYzkJ4lfJaTvm+zmBkBQZdZlTivNqHcA FNKQ== 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 r9si4287539ejp.629.2020.07.30.19.44.05; Thu, 30 Jul 2020 19:44:28 -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 S1731209AbgGaClE (ORCPT + 99 others); Thu, 30 Jul 2020 22:41:04 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:45440 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730820AbgGaClE (ORCPT ); Thu, 30 Jul 2020 22:41:04 -0400 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 3DAB5CA23216DB556543; Fri, 31 Jul 2020 10:41:00 +0800 (CST) Received: from [10.63.139.185] (10.63.139.185) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.487.0; Fri, 31 Jul 2020 10:40:49 +0800 Subject: Re: [PATCH] uacce: fix some coding styles To: Kai Ye , , , , References: <1596089583-32687-1-git-send-email-yekai13@huawei.com> From: Zhou Wang Message-ID: <5F2384B1.3040301@hisilicon.com> Date: Fri, 31 Jul 2020 10:40:49 +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: <1596089583-32687-1-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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2020/7/30 14:13, Kai Ye wrote: > 1. delete some redundant code. > 2. modify the module author information. > > Signed-off-by: Kai Ye Fine to me. Reviewed-by: Zhou Wang Thanks, Zhou > --- > Changes in V2: > deleted extra NULL pointer check in uacce_fops. > > drivers/misc/uacce/uacce.c | 13 +------------ > 1 file changed, 1 insertion(+), 12 deletions(-) > > diff --git a/drivers/misc/uacce/uacce.c b/drivers/misc/uacce/uacce.c > index 107028e..1d09707 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; > @@ -541,5 +530,5 @@ subsys_initcall(uacce_init); > module_exit(uacce_exit); > > MODULE_LICENSE("GPL"); > -MODULE_AUTHOR("Hisilicon Tech. Co., Ltd."); > +MODULE_AUTHOR("HiSilicon Tech. Co., Ltd."); > MODULE_DESCRIPTION("Accelerator interface for Userland applications"); >