From patchwork Thu Jan 9 02:17:07 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 182771 Delivered-To: patch@linaro.org Received: by 2002:a92:1f12:0:0:0:0:0 with SMTP id i18csp3154924ile; Sun, 12 Jan 2020 08:43:43 -0800 (PST) X-Google-Smtp-Source: APXvYqxjOdM6jEvxvRzPujvIB5nXGWz5XBR1LJSop3oRrwgH4Ca+RqrCFScWH+EEh8Qelz5BiJb2 X-Received: by 2002:ac8:404e:: with SMTP id j14mr10179921qtl.312.1578845273540; Sun, 12 Jan 2020 08:07:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578845273; cv=none; d=google.com; s=arc-20160816; b=0Tac468fBUrgPBcrR2mTuoQmsHIbaqcHmewXk6mfiTkPakEkYbfZahzxCevd42FpyL /v8yHmm0bjcFs7YINHzp8yujKmRDblY900VY3P4KGRCuCZv47Qi0pZHN7U95B16unTn1 O56AG6/PP9gU7X9YUcdzII6Mw2KqCr8fNkMutvqXDyk+6AGw2UeXYo2LOo9V1T11gA+w nfbi9Jzmv49RmbiRMmVK7bqQ4r1CpiPIL7drg/dUst0M5x1R09dv1jwtoPsKuGrJrokC u1Qwk/jiVNL5lKL2k0HoM99bjnzHKrDy6x313CqSOqj5YDwtamWpMrcCx49++HBjIaU8 llbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=UEu09f1Nlqe8aDmLncxcurE+ZboCmDUATKx9s84WZ/k=; b=b4mq0nsL/RErLEopZ0wVNMzp+U4UndIR01hE+pEQUDAfXzgQ8ltAb09CHVJfR5BCMX j9Byd8skMwHJ54rNW4227i7p3uxff1V5qZS98vzfNRyUXF5vf+/NV8mYmORxWEBo+hSY 4TuqgtsXXx1hVm3Xkz858NLlrxVTuTgo2AwsiZIGhQhST7WruwXuMJcSDOvlpwvX4MeE wKVlcjF/c+vqeqg5R6dkKM4jEL8c+x/1ynfJJ3XpaUhRVXnd0umwP6i48Elh07T55CkE 6lh7WGKD5DlaUCROvIh9SPqP3FP3mfO0OzbFFMDlE1lTidwbe7efuxlEfG27gxckKtmT /sAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=A5S75hZQ; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id bv20si4820116qvb.23.2020.01.12.08.07.53 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 12 Jan 2020 08:07:53 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=A5S75hZQ; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:53408 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ipNOX-0007N8-Lm for patch@linaro.org; Wed, 08 Jan 2020 21:17:57 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:34808) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ipNO2-0007Fg-Ku for qemu-devel@nongnu.org; Wed, 08 Jan 2020 21:17:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ipNNz-00086R-DD for qemu-devel@nongnu.org; Wed, 08 Jan 2020 21:17:26 -0500 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]:39204) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ipNNw-00083y-9D for qemu-devel@nongnu.org; Wed, 08 Jan 2020 21:17:20 -0500 Received: by mail-pf1-x444.google.com with SMTP id q10so2572651pfs.6 for ; Wed, 08 Jan 2020 18:17:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=UEu09f1Nlqe8aDmLncxcurE+ZboCmDUATKx9s84WZ/k=; b=A5S75hZQnMsJ1nbOjo9RnK9XtB8yFbaUULsBPbLEB6/GcjVm1l+2HCgRNadFzGkQX1 5z3Ipkc3WySJA6h5CZvIMPLVPvKo3QAynfKGtJcyZDsuhID9J80AWz74o+0+czmTcL2G i+bpptvkeMh8CnM5/fz7PuFgE66wbrdItvABM5WrcNjK9JPXnrpEiuP4AbU4A6AF5rVe Uq6lHbgssuhBgTi9PC9onSmtLj/JTJ5pY9le/s6H4VMo/gg00V8b684AZw117AtUPvFy HhjJq08vpO/9yWSRFwOScY9rfzP0gtl6b5c6xTmdVoqE8BlS9ywvpRJwSdFRrihVV9Rr fGaA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=UEu09f1Nlqe8aDmLncxcurE+ZboCmDUATKx9s84WZ/k=; b=dy5xenbeVRA/JxZmUPbgNJxF5KOon54udTrfyWldl2VHcYvsX/UXqYDu4tGrpbT0Qw YvGjW0OvjZgbaRQeLyXwaLyvhvpbXWvV+BEd0l2PgoyaYld3QYkvQO78oLeWeJJkQxE3 cbv/Z5TcJEDR5zUx3xAzHPyHZqf/Twos1I1IEfhGFIVBEmNO0I0TMdeYu93DurO61M46 BJa+8XPm5v3669iiQaljwaP+D1RiHccR/h5lc//MKO1VjlIluaToRyiKsl5Lqioawabf 4m75PQ75BtXx8AXXFRyVTLFQC6+yxkPAAzllRiokEIyj0F74jVblDXMFEzZO5w2pQqSW vWUA== X-Gm-Message-State: APjAAAW7Vzr0srWd8Zjv3uLeYKlNUKZie5eys04L0DLFCRVMUOHcM89g 8mut5UKTql7qq8BRJ4ni6mIuYqaFQ+3qHw== X-Received: by 2002:a62:e30d:: with SMTP id g13mr8714360pfh.92.1578536238344; Wed, 08 Jan 2020 18:17:18 -0800 (PST) Received: from localhost.localdomain (alanje.lnk.telstra.net. [120.151.179.201]) by smtp.gmail.com with ESMTPSA id n26sm5166715pgd.46.2020.01.08.18.17.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jan 2020 18:17:17 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 1/4] vl: Remove unused variable in configure_accelerators Date: Thu, 9 Jan 2020 13:17:07 +1100 Message-Id: <20200109021710.1219-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200109021710.1219-1-richard.henderson@linaro.org> References: <20200109021710.1219-1-richard.henderson@linaro.org> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::444 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: pbonzini@redhat.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" The accel_initialised variable no longer has any setters. Fixes: 6f6e1698a68c Signed-off-by: Richard Henderson --- vl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.20.1 diff --git a/vl.c b/vl.c index 86474a55c9..be79b03c1a 100644 --- a/vl.c +++ b/vl.c @@ -2749,7 +2749,6 @@ static void configure_accelerators(const char *progname) { const char *accel; char **accel_list, **tmp; - bool accel_initialised = false; bool init_failed = false; qemu_opts_foreach(qemu_find_opts("icount"), @@ -2776,7 +2775,7 @@ static void configure_accelerators(const char *progname) accel_list = g_strsplit(accel, ":", 0); - for (tmp = accel_list; !accel_initialised && tmp && *tmp; tmp++) { + for (tmp = accel_list; tmp && *tmp; tmp++) { /* * Filter invalid accelerators here, to prevent obscenities * such as "-machine accel=tcg,,thread=single".