logd: simplification, return NULL instead of threadexit NULL

Bug: 16822776
Change-Id: I12133226f1b48d8fdc378dea0aadd78a4aae3da8
This commit is contained in:
Mark Salyzyn 2014-08-11 10:36:39 -07:00
parent c692410e16
commit 19e8de0742

View file

@ -119,8 +119,7 @@ void *LogTimeEntry::threadStart(void *obj) {
SocketClient *client = me->mClient;
if (!client) {
me->error();
pthread_exit(NULL);
// NOTREACH
return NULL;
}
LogBuffer &logbuf = me->mReader.logbuf();
@ -154,9 +153,6 @@ void *LogTimeEntry::threadStart(void *obj) {
unlock();
pthread_exit(NULL);
// NOTREACH
pthread_cleanup_pop(true);
return NULL;