summaryrefslogtreecommitdiff
path: root/libs/binder/ProcessState.cpp
diff options
context:
space:
mode:
author Elliott Hughes <enh@google.com> 2015-07-09 17:29:47 +0000
committer Android Git Automerger <android-git-automerger@android.com> 2015-07-09 17:29:47 +0000
commit9df254460b2dfd3db1132affc9489d0be01def23 (patch)
tree570ce3d874af5836b976724b6a97ee78a453debd /libs/binder/ProcessState.cpp
parent59a33a012d64d21fb73cac527ef25db8a0478d23 (diff)
parent9bad590ef91c655fb9a0212e5a347aaa3e350bb0 (diff)
am 9bad590e: Merge "Binder on Windows? Unlikely."
* commit '9bad590ef91c655fb9a0212e5a347aaa3e350bb0': 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 303d6cf3a2..4109575fde 100644
--- a/libs/binder/ProcessState.cpp
+++ b/libs/binder/ProcessState.cpp
@@ -343,10 +343,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) {
@@ -355,9 +351,6 @@ ProcessState::ProcessState()
close(mDriverFD);
mDriverFD = -1;
}
-#else
- mDriverFD = -1;
-#endif
}
LOG_ALWAYS_FATAL_IF(mDriverFD < 0, "Binder driver could not be opened. Terminating.");