Drop always false condition

The previous if conditional branch would have been taken
in case this condition would be true,
This commit is contained in:
Christian Göttsche 2021-01-05 14:15:54 +01:00 committed by BenBE
parent d53398fb48
commit 3715301fe3

View File

@ -1455,7 +1455,7 @@ static bool LinuxProcessList_recurseProcTree(LinuxProcessList* this, openat_arg_
proc->basenameOffset = -1;
setCommand(proc, command, commLen);
} else if (Process_isThread(proc)) {
if (settings->showThreadNames || Process_isKernelThread(proc) || (proc->state == 'Z' && proc->basenameOffset == 0)) {
if (settings->showThreadNames || Process_isKernelThread(proc)) {
proc->basenameOffset = -1;
setCommand(proc, command, commLen);
} else if (settings->showThreadNames) {