From af67ee9264c135f4b213b4bc1a3871c4e9ec7da3 Mon Sep 17 00:00:00 2001 From: Eduardo Habkost Date: Tue, 18 Mar 2014 16:29:24 -0300 Subject: [PATCH] vl.c: Use MAX_CPUMASK_BITS macro instead of hardcoded constant Signed-off-by: Eduardo Habkost Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- vl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vl.c b/vl.c index c8a5bfa959..23e1dbd245 100644 --- a/vl.c +++ b/vl.c @@ -1413,7 +1413,7 @@ static void smp_parse(QemuOpts *opts) max_cpus = smp_cpus; } - if (max_cpus > 255) { + if (max_cpus > MAX_CPUMASK_BITS) { fprintf(stderr, "Unsupported number of maxcpus\n"); exit(1); }