Merge "logd: remove unnecessary static" am: a597f75045

Change-Id: I255b0a524af3c29f88c6de1891b51feb5fbdba12
This commit is contained in:
Treehugger Robot 2020-05-12 19:44:41 +00:00 committed by Automerger Merge Worker
commit a55b2e3f68
1 changed files with 1 additions and 5 deletions

View File

@ -45,11 +45,7 @@ bool LogListener::StartListener() {
}
void LogListener::ThreadFunction() {
static bool name_set;
if (!name_set) {
prctl(PR_SET_NAME, "logd.writer");
name_set = true;
}
prctl(PR_SET_NAME, "logd.writer");
while (true) {
HandleData();