summaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2020-01-09 13:10:07 +1100
committerRichard Henderson <richard.henderson@linaro.org>2020-01-21 14:18:24 -1000
commita024b0906779e4355b6d04f67c01d1bc0dcc2699 (patch)
treed255a4265d58a030b8d0462143f0b5f669781616 /vl.c
parent60ee355276a17f21aec4bfa9bdffa16102aa0b8b (diff)
downloadqemu-a024b0906779e4355b6d04f67c01d1bc0dcc2699.zip
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>
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vl.c b/vl.c
index 94c9301e7f..1e5e9b9aeb 100644
--- a/vl.c
+++ b/vl.c
@@ -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".