diff options
author | Philippe Mathieu-Daudé | 2017-09-18 01:28:42 +0200 |
---|---|---|
committer | Eduardo Habkost | 2017-10-10 04:21:52 +0200 |
commit | 8301ea444abb49f7b7fb939b09c1e23b22977f30 (patch) | |
tree | 22dc7963464b3615aa96e96d6d873f1fb072c74d /target/cris | |
parent | Merge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging (diff) | |
download | qemu-8301ea444abb49f7b7fb939b09c1e23b22977f30.tar.gz qemu-8301ea444abb49f7b7fb939b09c1e23b22977f30.tar.xz qemu-8301ea444abb49f7b7fb939b09c1e23b22977f30.zip |
qom/cpu: move cpu_model null check to cpu_class_by_name()
and clean every implementation.
Suggested-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20170917232842.14544-1-f4bug@amsat.org>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Artyom Tarasenko <atar4qemu@gmail.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'target/cris')
-rw-r--r-- | target/cris/cpu.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/target/cris/cpu.c b/target/cris/cpu.c index ceebfed79b..88d93f2d11 100644 --- a/target/cris/cpu.c +++ b/target/cris/cpu.c @@ -69,10 +69,6 @@ static ObjectClass *cris_cpu_class_by_name(const char *cpu_model) ObjectClass *oc; char *typename; - if (cpu_model == NULL) { - return NULL; - } - #if defined(CONFIG_USER_ONLY) if (strcasecmp(cpu_model, "any") == 0) { return object_class_by_name("crisv32-" TYPE_CRIS_CPU); |