There aren't any users of the helper left, remove it. Signed-off-by: Igor Mammedov <imamm...@redhat.com> --- CC: Richard Henderson <richard.hender...@linaro.org> CC: "Emilio G. Cota" <c...@braap.org> CC: Paolo Bonzini <pbonz...@redhat.com> CC: Eduardo Habkost <ehabk...@redhat.com> CC: "Alex Bennée" <alex.ben...@linaro.org> CC: "Philippe Mathieu-Daudé" <f4...@amsat.org> --- qom/cpu.c | 17 ++--------------- 1 file changed, 2 insertions(+), 15 deletions(-)
diff --git a/qom/cpu.c b/qom/cpu.c index aab8437..cf6880d 100644 --- a/qom/cpu.c +++ b/qom/cpu.c @@ -304,22 +304,9 @@ static ObjectClass *cpu_common_class_by_name(const char *cpu_model) static void cpu_common_parse_features(const char *typename, char *features, Error **errp) { - char *featurestr; /* Single "key=value" string being parsed */ char *val; - static bool cpu_globals_initialized; - - /* TODO: all callers of ->parse_features() need to be changed to - * call it only once, so we can remove this check (or change it - * to assert(!cpu_globals_initialized). - * Current callers of ->parse_features() are: - * - cpu_generic_init() - */ - if (cpu_globals_initialized) { - return; - } - cpu_globals_initialized = true; - - featurestr = features ? strtok(features, ",") : NULL; + /* Single "key=value" string being parsed */ + char *featurestr = features ? strtok(features, ",") : NULL; while (featurestr) { val = strchr(featurestr, '='); -- 2.7.4