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;
|
SocketClient *client = me->mClient;
|
||||||
if (!client) {
|
if (!client) {
|
||||||
me->error();
|
me->error();
|
||||||
pthread_exit(NULL);
|
return NULL;
|
||||||
// NOTREACH
|
|
||||||
}
|
}
|
||||||
|
|
||||||
LogBuffer &logbuf = me->mReader.logbuf();
|
LogBuffer &logbuf = me->mReader.logbuf();
|
||||||
|
|
@ -154,9 +153,6 @@ void *LogTimeEntry::threadStart(void *obj) {
|
||||||
|
|
||||||
unlock();
|
unlock();
|
||||||
|
|
||||||
pthread_exit(NULL);
|
|
||||||
|
|
||||||
// NOTREACH
|
|
||||||
pthread_cleanup_pop(true);
|
pthread_cleanup_pop(true);
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue