summaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
authorOded Gabbay <oded.gabbay@gmail.com>2019-05-09 01:47:01 +0300
committerOded Gabbay <oded.gabbay@gmail.com>2019-05-09 01:47:01 +0300
commit1f2c999bbca31c1f0bbbe69a75f3489f60cce05d (patch)
tree9a625063b4fee2cb17d46ecc639842459c86f183 /drivers/misc
parentcbe722e41684930c485fd09a161de44e444731f6 (diff)
downloadlinux-1f2c999bbca31c1f0bbbe69a75f3489f60cce05d.tar.gz
linux-1f2c999bbca31c1f0bbbe69a75f3489f60cce05d.tar.bz2
linux-1f2c999bbca31c1f0bbbe69a75f3489f60cce05d.zip
habanalabs: remove redundant memory clear
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>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/habanalabs/goya/goya.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/misc/habanalabs/goya/goya.c b/drivers/misc/habanalabs/goya/goya.c
index 756921c52cf7..a2459cb106dd 100644
--- 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;