summaryrefslogtreecommitdiff
path: root/libs/binder/ProcessState.cpp
diff options
context:
space:
mode:
author Elliott Hughes <enh@google.com> 2015-07-09 17:57:36 +0000
committer Android Git Automerger <android-git-automerger@android.com> 2015-07-09 17:57:36 +0000
commit153008efb5a00ed3c18d588ce15f90d2442a9786 (patch)
treee70f7f3596386461c3d6b725685364f46bb318bd /libs/binder/ProcessState.cpp
parentf0a34a2d1e774bcf3aad2fe5af2140d5ed083fde (diff)
parent9df254460b2dfd3db1132affc9489d0be01def23 (diff)
am 9df25446: am 9bad590e: Merge "Binder on Windows? Unlikely."
* commit '9df254460b2dfd3db1132affc9489d0be01def23': Binder on Windows? Unlikely.
Diffstat (limited to 'libs/binder/ProcessState.cpp')
-rw-r--r--libs/binder/ProcessState.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/libs/binder/ProcessState.cpp b/libs/binder/ProcessState.cpp
index 016d3c54b0..821ab6cb9b 100644
--- a/libs/binder/ProcessState.cpp
+++ b/libs/binder/ProcessState.cpp
@@ -350,10 +350,6 @@ ProcessState::ProcessState()
, mThreadPoolSeq(1)
{
if (mDriverFD >= 0) {
- // XXX Ideally, there should be a specific define for whether we
- // have mmap (or whether we could possibly have the kernel module
- // availabla).
-#if !defined(HAVE_WIN32_IPC)
// mmap the binder, providing a chunk of virtual address space to receive transactions.
mVMStart = mmap(0, BINDER_VM_SIZE, PROT_READ, MAP_PRIVATE | MAP_NORESERVE, mDriverFD, 0);
if (mVMStart == MAP_FAILED) {
@@ -362,9 +358,6 @@ ProcessState::ProcessState()
close(mDriverFD);
mDriverFD = -1;
}
-#else
- mDriverFD = -1;
-#endif
}
LOG_ALWAYS_FATAL_IF(mDriverFD < 0, "Binder driver could not be opened. Terminating.");