]> git.proxmox.com Git - mirror_qemu.git/commit - target/i386/cpu.c
cpu: drop unnecessary NULL check and cpu_common_class_by_name()
authorIgor Mammedov <imammedo@redhat.com>
Wed, 7 Feb 2018 14:30:57 +0000 (15:30 +0100)
committerEduardo Habkost <ehabkost@redhat.com>
Mon, 19 Mar 2018 17:10:36 +0000 (14:10 -0300)
commit99193d8f2ef594648ad67cc3d007b0e4fb2f8cf8
tree41c586d95ca50ce632e5db98531f596559ef4438
parent3f71e724e283233753f1b5b3d6a30948d3084636
cpu: drop unnecessary NULL check and cpu_common_class_by_name()

both do nothing as for the first all callers
   parse_cpu_model() and qmp_query_cpu_model_()
should provide non NULL value, so just abort if it's not so.

While at it drop cpu_common_class_by_name() which is not need
any more as every target has CPUClass::class_by_name callback
by now, though abort in case a new arch will forget to define one.

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <1518013857-4372-1-git-send-email-imammedo@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
qom/cpu.c
target/i386/cpu.c