OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cbe722e
)
habanalabs: remove redundant memory clear
author
Oded Gabbay
<oded.gabbay@gmail.com>
Wed, 8 May 2019 22:47:01 +0000
(
01:47
+0300)
committer
Oded Gabbay
<oded.gabbay@gmail.com>
Wed, 8 May 2019 22:47:01 +0000
(
01:47
+0300)
The driver allocates memory for fence object with GFP_ZERO flag, so there
is no need to explicitly write 0 to the allocated object after the
allocation.
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/misc/habanalabs/goya/goya.c
patch
|
blob
|
history
diff --git
a/drivers/misc/habanalabs/goya/goya.c
b/drivers/misc/habanalabs/goya/goya.c
index
756921c
..
a2459cb
100644
(file)
--- a/
drivers/misc/habanalabs/goya/goya.c
+++ b/
drivers/misc/habanalabs/goya/goya.c
@@
-2823,8
+2823,6
@@
static int goya_send_job_on_qman0(struct hl_device *hdev, struct hl_cs_job *job)
return -ENOMEM;
}
- *fence_ptr = 0;
-
goya_qman0_set_security(hdev, true);
cb = job->patched_cb;