* [RESEND PATCH v3 0/2] uacce: fix some coding styles
@ 2020-11-02 9:39 Kai Ye
2020-11-02 9:39 ` [RESEND PATCH v3 1/2] uacce: delete some redundant code Kai Ye
2020-11-02 9:39 ` [RESEND PATCH v3 2/2] uacce: modify the module author information Kai Ye
0 siblings, 2 replies; 3+ messages in thread
From: Kai Ye @ 2020-11-02 9:39 UTC (permalink / raw)
To: linux-accelerators, linux-kernel, linuxarm, gregkh, zhangfei.gao
From: y00501072 <y00501072@huawei.com>
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(-)
--
2.8.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* [RESEND PATCH v3 1/2] uacce: delete some redundant code.
2020-11-02 9:39 [RESEND PATCH v3 0/2] uacce: fix some coding styles Kai Ye
@ 2020-11-02 9:39 ` Kai Ye
2020-11-02 9:39 ` [RESEND PATCH v3 2/2] uacce: modify the module author information Kai Ye
1 sibling, 0 replies; 3+ messages in thread
From: Kai Ye @ 2020-11-02 9:39 UTC (permalink / raw)
To: linux-accelerators, linux-kernel, linuxarm, gregkh, zhangfei.gao
Delete some redundant code.
Signed-off-by: Kai Ye <yekai13@huawei.com>
Reviewed-by: Zhou Wang <wangzhou1@hisilicon.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@Huawei.com>
Acked-by: Zhangfei Gao <zhangfei.gao@linaro.org>
---
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 56dd98a..eb827f1 100644
--- a/drivers/misc/uacce/uacce.c
+++ b/drivers/misc/uacce/uacce.c
@@ -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;
--
2.8.1
^ permalink raw reply [flat|nested] 3+ messages in thread* [RESEND PATCH v3 2/2] uacce: modify the module author information.
2020-11-02 9:39 [RESEND PATCH v3 0/2] uacce: fix some coding styles Kai Ye
2020-11-02 9:39 ` [RESEND PATCH v3 1/2] uacce: delete some redundant code Kai Ye
@ 2020-11-02 9:39 ` Kai Ye
1 sibling, 0 replies; 3+ messages in thread
From: Kai Ye @ 2020-11-02 9:39 UTC (permalink / raw)
To: linux-accelerators, linux-kernel, linuxarm, gregkh, zhangfei.gao
The spelling of "Hisilicon" is modified.
Signed-off-by: Kai Ye <yekai13@huawei.com>
Reviewed-by: Zhou Wang <wangzhou1@hisilicon.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@Huawei.com>
Acked-by: Zhangfei Gao <zhangfei.gao@linaro.org>
---
drivers/misc/uacce/uacce.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/misc/uacce/uacce.c b/drivers/misc/uacce/uacce.c
index eb827f1..d07af4e 100644
--- a/drivers/misc/uacce/uacce.c
+++ b/drivers/misc/uacce/uacce.c
@@ -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");
--
2.8.1
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-11-02 9:41 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-02 9:39 [RESEND PATCH v3 0/2] uacce: fix some coding styles Kai Ye
2020-11-02 9:39 ` [RESEND PATCH v3 1/2] uacce: delete some redundant code Kai Ye
2020-11-02 9:39 ` [RESEND PATCH v3 2/2] uacce: modify the module author information Kai Ye
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®