]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
shared/cpu-set-util: remove now-unused CPU_SIZE_TO_NUM()
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 19 May 2019 16:08:39 +0000 (18:08 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 21 May 2019 06:44:09 +0000 (08:44 +0200)
src/shared/cpu-set-util.h

index fea8ac83626a43bdccbe9f5906800ce663604f3c..9574b815829b0cc058015859ac2e3dd2a5cc894b 100644 (file)
@@ -5,12 +5,6 @@
 
 #include "macro.h"
 
-#ifdef __NCPUBITS
-#define CPU_SIZE_TO_NUM(n) ((n) * __NCPUBITS)
-#else
-#define CPU_SIZE_TO_NUM(n) ((n) * sizeof(cpu_set_t) * 8)
-#endif
-
 DEFINE_TRIVIAL_CLEANUP_FUNC(cpu_set_t*, CPU_FREE);
 #define _cleanup_cpu_free_ _cleanup_(CPU_FREEp)