nproc: code shrink

Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
Denys Vlasenko 2021-06-24 13:47:49 +02:00
parent df96a3cd08
commit 6481070eb9

View File

@ -48,7 +48,7 @@ int nproc_main(int argc UNUSED_PARAM, char **argv UNUSED_PARAM)
if (cpuid && isdigit(cpuid[strlen(cpuid) - 1]))
count++;
}
closedir(cpusd);
IF_FEATURE_CLEAN_UP(closedir(cpusd);)
}
} else
#endif