Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 19e8de07 authored by Mark Salyzyn's avatar Mark Salyzyn
Browse files

logd: simplification, return NULL instead of threadexit NULL

Bug: 16822776
Change-Id: I12133226f1b48d8fdc378dea0aadd78a4aae3da8
parent c692410e
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -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;