vl: Remove useless test in configure_accelerators

The result of g_strsplit is never NULL.

Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed by: Aleksandar Markovic <amarkovic@wavecomp.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
master
Richard Henderson 2020-01-09 13:10:07 +11:00
parent 60ee355276
commit a024b09067
1 changed files with 1 additions and 1 deletions

2
vl.c
View File

@ -2783,7 +2783,7 @@ static void configure_accelerators(const char *progname)
accel_list = g_strsplit(accel, ":", 0);
for (tmp = accel_list; tmp && *tmp; tmp++) {
for (tmp = accel_list; *tmp; tmp++) {
/*
* Filter invalid accelerators here, to prevent obscenities
* such as "-machine accel=tcg,,thread=single".