Remove dead code

This commit is contained in:
Christian Göttsche 2021-01-05 14:59:37 +01:00 committed by BenBE
parent d9240999e9
commit 1b2d48bc9a
1 changed files with 1 additions and 4 deletions

View File

@ -1435,11 +1435,8 @@ static bool LinuxProcessList_recurseProcTree(LinuxProcessList* this, openat_arg_
if (settings->showThreadNames || Process_isKernelThread(proc)) { if (settings->showThreadNames || Process_isKernelThread(proc)) {
proc->basenameOffset = -1; proc->basenameOffset = -1;
free_and_xStrdup(&proc->comm, command); free_and_xStrdup(&proc->comm, command);
} else if (settings->showThreadNames) {
if (! LinuxProcessList_readCmdlineFile(proc, procFd)) {
goto errorReadingProcess;
}
} }
if (Process_isKernelThread(proc)) { if (Process_isKernelThread(proc)) {
pl->kernelThreads++; pl->kernelThreads++;
} else { } else {