uacce: fix some coding styles
Subsystems (2)
v3 cover uacce: fix some coding styles
From: y00501072 <[email protected]>
1. delete some redundant code.
2. modify the module author information. "Hisilicon" spelling is error.
Changes v2 -> v3:
Two things, splited to two patches.
Changes v1 -> v2:
deleted extra NULL pointer check in uacce_fops.
Kai Ye (2):
uacce: delete some redundant code.
uacce: modify the module author information.
drivers/misc/uacce/uacce.c | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-)
Signature · 1 line
2.8.1
PATCH RESEND v3 1/2 uacce: delete some redundant code.
Delete some redundant code.
Signed-off-by Kai Ye <[email protected]>
Reviewed-by Zhou Wang <[email protected]>
Reviewed-by Jonathan Cameron <[email protected]>
Acked-by Zhangfei Gao <[email protected]>
--- drivers/misc/uacce/uacce.c | 11 ----------- 1 file changed, 11 deletions(-)
drivers/misc/uacce/uacce.c +0 -11
@@ -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 ;
Signature · 1 line
2.8.1
PATCH RESEND v3 2/2 uacce: modify the module author information.
In reply to Kai YeThe spelling of "Hisilicon" is modified.
Signed-off-by Kai Ye <[email protected]>
Reviewed-by Zhou Wang <[email protected]>
Reviewed-by Jonathan Cameron <[email protected]>
Acked-by Zhangfei Gao <[email protected]>
--- drivers/misc/uacce/uacce.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/misc/uacce/uacce.c +1 -1
@@ -522,5 +522,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" );
Signature · 1 line
2.8.1