commit | ffa6a38a42549afc10774e5fba4295aafb2ad721 | [log] [tgz] |
---|---|---|
author | Myles Watson <mylesgw@google.com> | Wed Feb 22 14:49:59 2017 +0000 |
committer | android-build-merger <android-build-merger@google.com> | Wed Feb 22 14:49:59 2017 +0000 |
tree | f1be8a7ad0e7c55db16fb69e7cd4bb928e64d099 | |
parent | 139cafe6427d6ca5e1c66f181675fe7c9fd66aca [diff] | |
parent | 5ea487bdce0ff8a9ae043fe98418ac93346ce4d1 [diff] |
Bluetooth: Simplify started check am: 5ea487bdce Change-Id: I8d4ae4b5c1fc96809600a32c1b91ebfee8a23e8e
diff --git a/bluetooth/1.0/default/async_fd_watcher.cc b/bluetooth/1.0/default/async_fd_watcher.cc index a88aa27..287d007 100644 --- a/bluetooth/1.0/default/async_fd_watcher.cc +++ b/bluetooth/1.0/default/async_fd_watcher.cc
@@ -41,12 +41,7 @@ } // Start the thread if not started yet - int started = tryStartThread(); - if (started != 0) { - return started; - } - - return 0; + return tryStartThread(); } int AsyncFdWatcher::ConfigureTimeout(