logd: simplification, return NULL instead of threadexit NULL
Bug: 16822776
Change-Id: I12133226f1b48d8fdc378dea0aadd78a4aae3da8
diff --git a/logd/LogTimes.cpp b/logd/LogTimes.cpp
index c6dc174..ea4e8c8 100644
--- a/logd/LogTimes.cpp
+++ b/logd/LogTimes.cpp
@@ -119,8 +119,7 @@
SocketClient *client = me->mClient;
if (!client) {
me->error();
- pthread_exit(NULL);
- // NOTREACH
+ return NULL;
}
LogBuffer &logbuf = me->mReader.logbuf();
@@ -154,9 +153,6 @@
unlock();
- pthread_exit(NULL);
-
- // NOTREACH
pthread_cleanup_pop(true);
return NULL;