Skip to content

Commit c0932dd

Browse files
committed
VisionBuf: don't zero out memory
1 parent 434ed23 commit c0932dd

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

msgq/visionipc/visionbuf_ion.cc

-2
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,6 @@ void VisionBuf::allocate(size_t length) {
7676
MAP_SHARED, ion_fd_data.fd, 0);
7777
assert(mmap_addr != MAP_FAILED);
7878

79-
memset(mmap_addr, 0, ion_alloc.len);
80-
8179
this->len = length;
8280
this->mmap_len = ion_alloc.len;
8381
this->addr = mmap_addr;

0 commit comments

Comments
 (0)