From a024b0906779e4355b6d04f67c01d1bc0dcc2699 Mon Sep 17 00:00:00 2001 From: Richard Henderson Date: Thu, 9 Jan 2020 13:10:07 +1100 Subject: [PATCH] vl: Remove useless test in configure_accelerators MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The result of g_strsplit is never NULL. Acked-by: Paolo Bonzini Reviewed-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Reviewed by: Aleksandar Markovic Signed-off-by: Richard Henderson --- vl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vl.c b/vl.c index 94c9301e7fa..1e5e9b9aeba 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". -- 2.39.5