2020-07-30 06:16:56

by yekai (A)

[permalink] [raw]
Subject: [PATCH] uacce: fix some coding styles

1. delete some redundant code.
2. modify the module author information.

Signed-off-by: Kai Ye <[email protected]>
---
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");
--
2.8.1


2020-07-31 02:44:29

by Zhou Wang

[permalink] [raw]
Subject: Re: [PATCH] uacce: fix some coding styles

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 <[email protected]>

Fine to me.

Reviewed-by: Zhou Wang <[email protected]>

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");
>

2020-07-31 03:11:03

by zhangfei

[permalink] [raw]
Subject: Re: [PATCH] uacce: fix some coding styles



On 2020/7/30 下午2:13, Kai Ye wrote:
> 1. delete some redundant code.
> 2. modify the module author information.
>
> Signed-off-by: Kai Ye <[email protected]>
Thanks Kai

Acked-by: Zhangfei Gao <[email protected]>

Thanks

2020-09-11 07:39:16

by yekai (A)

[permalink] [raw]
Subject: Re: [PATCH] uacce: fix some coding styles

Hi Hartman

Could you help to take this patch?
Thanks.
On 2020/7/31 11:09, Zhangfei Gao wrote:
>
>
> On 2020/7/30 下午2:13, Kai Ye wrote:
>> 1. delete some redundant code.
>> 2. modify the module author information.
>>
>> Signed-off-by: Kai Ye <[email protected]>
> Thanks Kai
>
> Acked-by: Zhangfei Gao <[email protected]>
>
> Thanks
>
>


2020-09-11 07:42:46

by Greg Kroah-Hartman

[permalink] [raw]
Subject: Re: [PATCH] uacce: fix some coding styles

On Fri, Sep 11, 2020 at 03:37:25PM +0800, yekai(A) wrote:
> Hi Hartman
>
> Could you help to take this patch?
> Thanks.
> On 2020/7/31 11:09, Zhangfei Gao wrote:
> >
> >
> > On 2020/7/30 下午2:13, Kai Ye wrote:
> > > 1. delete some redundant code.
> > > 2. modify the module author information.
> > >
> > > Signed-off-by: Kai Ye <[email protected]>
> > Thanks Kai
> >
> > Acked-by: Zhangfei Gao <[email protected]>
> >
> > Thanks
> >
> >
>
>

I see no patch here to take, sorry :(