logd: simplification, return NULL instead of threadexit NULL
Bug: 16822776 Change-Id: I12133226f1b48d8fdc378dea0aadd78a4aae3da8
This commit is contained in:
parent
c692410e16
commit
19e8de0742
1 changed files with 1 additions and 5 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue