diff options
author | guolun Xue <xueguolun@xiaomi.corp-partner.google.com> | 2022-12-06 13:57:52 +0000 |
---|---|---|
committer | T.J. Mercier <tjmercier@google.com> | 2022-12-12 17:57:53 +0000 |
commit | 7bf89a538ba75c829efe793d1a2efe7b7f24d354 (patch) | |
tree | 8cdf785d0462699cf3eeb6a244e6d2396c7c8ea5 | |
parent | 0b333c862f9635887a2891d1b5522a7172ce92ee (diff) | |
download | libdmabufheap-7bf89a538ba75c829efe793d1a2efe7b7f24d354.tar.gz |
Remove DoSync function argument comments at callsites
use param false resprent stop cpusync when call DoSync() func
code remarks maybe wrong when CpuSyncEnd call DoSync()
Change-Id: I642669db76686648f876c82d797361a0c0761cf6
-rw-r--r-- | BufferAllocator.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/BufferAllocator.cpp b/BufferAllocator.cpp index 8ebdae8..a360cfd 100644 --- a/BufferAllocator.cpp +++ b/BufferAllocator.cpp @@ -340,7 +340,7 @@ int BufferAllocator::DoSync(unsigned int dmabuf_fd, bool start, SyncType sync_ty int BufferAllocator::CpuSyncStart(unsigned int dmabuf_fd, SyncType sync_type, const CustomCpuSyncLegacyIon& legacy_ion_cpu_sync_custom, void *legacy_ion_custom_data) { - int ret = DoSync(dmabuf_fd, true /* start */, sync_type, legacy_ion_cpu_sync_custom, + int ret = DoSync(dmabuf_fd, true, sync_type, legacy_ion_cpu_sync_custom, legacy_ion_custom_data); if (ret) PLOG(ERROR) << "CpuSyncStart() failure"; @@ -350,7 +350,7 @@ int BufferAllocator::CpuSyncStart(unsigned int dmabuf_fd, SyncType sync_type, int BufferAllocator::CpuSyncEnd(unsigned int dmabuf_fd, SyncType sync_type, const CustomCpuSyncLegacyIon& legacy_ion_cpu_sync_custom, void* legacy_ion_custom_data) { - int ret = DoSync(dmabuf_fd, false /* start */, sync_type, legacy_ion_cpu_sync_custom, + int ret = DoSync(dmabuf_fd, false, sync_type, legacy_ion_cpu_sync_custom, legacy_ion_custom_data); if (ret) PLOG(ERROR) << "CpuSyncEnd() failure"; |