From 5ea487bdce0ff8a9ae043fe98418ac93346ce4d1 Mon Sep 17 00:00:00 2001 From: Myles Watson Date: Tue, 21 Feb 2017 16:53:34 -0800 Subject: [PATCH] Bluetooth: Simplify started check Test: Bluetooth starts/stops Change-Id: Ib1777ac31d4a13d4221045fa3fa7d817a795f6f9 --- bluetooth/1.0/default/async_fd_watcher.cc | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/bluetooth/1.0/default/async_fd_watcher.cc b/bluetooth/1.0/default/async_fd_watcher.cc index a88aa275c9..287d007a73 100644 --- a/bluetooth/1.0/default/async_fd_watcher.cc +++ b/bluetooth/1.0/default/async_fd_watcher.cc @@ -41,12 +41,7 @@ int AsyncFdWatcher::WatchFdForNonBlockingReads( } // Start the thread if not started yet - int started = tryStartThread(); - if (started != 0) { - return started; - } - - return 0; + return tryStartThread(); } int AsyncFdWatcher::ConfigureTimeout(