Skip to contentSkip to conversation

uacce: fix some coding styles

PATCH RESEND New Kai Ye 1 participant 3 messages Nov 2, 2020

Subsystems (2)
lore
Share & tools
lore

Kai Ye

author
#0 lore raw

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
author
#1 lore raw

PATCH RESEND v3 1/2 uacce: delete some redundant code.

Delete some redundant code.

---
 drivers/misc/uacce/uacce.c | 11 -----------
 1 file changed, 11 deletions(-)
drivers/misc/uacce/uacce.c +0 -11
index 56dd98a..eb827f1 100644
@@ -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
author
#2 lore raw

PATCH RESEND v3 2/2 uacce: modify the module author information.

In reply to Kai Ye

The spelling of "Hisilicon" is modified.

---
 drivers/misc/uacce/uacce.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/misc/uacce/uacce.c +1 -1
index eb827f1..d07af4e 100644
@@ -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