From patchwork Thu Jan 9 02:17:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 182755 Delivered-To: patch@linaro.org Received: by 2002:a92:1f12:0:0:0:0:0 with SMTP id i18csp3120009ile; Sun, 12 Jan 2020 08:03:45 -0800 (PST) X-Google-Smtp-Source: APXvYqwA1FUvDvKbI6Li3x9XdnKHPEx/fY2U4T6dPzBS6K1K+jLcJDY+zg4W2tNZXUDUaFEoqmvf X-Received: by 2002:aa7:d714:: with SMTP id t20mr13229859edq.93.1578845025713; Sun, 12 Jan 2020 08:03:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1578845025; cv=none; d=google.com; s=arc-20160816; b=st5SJY3uTD+Ip3HhONX7BbpkNTZNp0rJ5NHi4y4h/D4ycTkZlzxuM1yZSs4yDKoTg5 7WC6TUAaeV62NBOKLxshA9L4Wa5J02nJ4z1H/RkiEt9RBiKutFdy/fljERFWxXEFXY2a 6Jzu5r70ymmoHhMS+vh5FHcfqDKG55IivIbjbO+r4SsVPbcQvQFx7C1BkRu9a2ZdfJ/w LzIP3Qszr9V7yiBMV8u0k8f3atuCgbkN3GRBKy0Mc/nKs+wq4YhWVRuJVFsFCip+x5WD 36mJF8IOUjV2siCrkR3l/B/HuzsirOCcFaiGbm3jPoAUqYiL4jeMbButhAIYBUo+VWNb ykgg== 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=ggTNIXckHEhs6NEA+P+FO98Kh7NZuAYc0hm4wcTirRY=; b=HN+lOkL7I8OcX7EfYMstzuQMfcWQPOiaRc94A3YDwU07pNMoGcj/Kobt0YSVHDIGeG 0GObMWl2UTSiqjiGfMTgBJ4plK/exxFQ5M8fGuejg3ZcJChQOcbYH6OKN3MSqcTydQa/ uFVg8LqcyjKiH1UPwRuttcakKTBmUr2G5qfojv114ofECzWUMDeUaX1gxJP0phxkg8Y1 lhjBU8jZeuVMB9KqL2QAJbYuSfKacjdJ4YWrqtX/eFd0JndBfftS+yRmGN6tdf7XhTpo A6/tr9S9XWLNk4rpMrkD0ExvfC78Q1sAFyNCTQi96G1pqfBuNVe3/V6W+kDU2Vt7ica3 J93g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=OQoNxuTJ; 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 p4si5685834edy.443.2020.01.12.08.03.45 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 12 Jan 2020 08:03:45 -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=OQoNxuTJ; 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]:53494 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ipNT6-0004o6-J4 for patch@linaro.org; Wed, 08 Jan 2020 21:22:40 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:34661) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ipNO1-0007FY-FT for qemu-devel@nongnu.org; Wed, 08 Jan 2020 21:17:29 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ipNO0-00088e-6q for qemu-devel@nongnu.org; Wed, 08 Jan 2020 21:17:25 -0500 Received: from mail-pj1-x1044.google.com ([2607:f8b0:4864:20::1044]:38330) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ipNO0-00086l-1J for qemu-devel@nongnu.org; Wed, 08 Jan 2020 21:17:24 -0500 Received: by mail-pj1-x1044.google.com with SMTP id l35so438251pje.3 for ; Wed, 08 Jan 2020 18:17:23 -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=ggTNIXckHEhs6NEA+P+FO98Kh7NZuAYc0hm4wcTirRY=; b=OQoNxuTJI4X9Dq7yjWdNkLddYniY1zFSLk6MnaecmRqplXArLbeTjytpfaQ47j69eG 9Oht3XGM4nI8tCBu2wjuIEZclvERC8A2+fwSevE6CxiQBKyKXYr97GKPiXJTt5LfLfsl D0qbCalJiILRip/zJ95AOTdWDWta8YGZT1ne+F8wYR2NZhWIkLsV9cn/lFtWlMnnredM loaqiAbU2EJl5D1SS0uihO7wJYZuu5XpcM7qrI6dmkZY9mW5UOcYox5+IWbgTW3GKejP djYWVEoN38atM5rcLM+QC7iXotg6vqj+185pun6luR7IR64fVhjjXvGiCOy+cXgxpmJk JBlA== 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=ggTNIXckHEhs6NEA+P+FO98Kh7NZuAYc0hm4wcTirRY=; b=MNlOI+NbVLjI8DS78JEuy1CL6WBwZH5HDXf1pR3ah8/ZO5hNP58V3DZBFgz14bX3Dc fc52JMgQowWKHjPqsKDc1dEvy6Ja3bLMH0w5zBn8eokTDyZcaiyt6KkiFoFSuxBP2CvQ 4PGfLJ5KysYtXM5Jh9xqzUceXWv7V5Vt39ydtaRiRa1I4kkWb4uAf3RWBvrG/RgOoT/f YlbnmSzOLz5sK9jRrKDOSAVU4/IYDbzTVsHquLp0DzjM7ogeHiUK8qwRvl11vAXssj4H pnHk7F5OIKBYWnM+cQ6q8WZnILpzW9TbziCaQF73r8wniJl+7dT41FfTkfoJUQOFhDVx ZyIQ== X-Gm-Message-State: APjAAAW4WFtvsn5Rs6Cx4EjoC8Fg2fbHB9NTpbig0tWFi8MPWGTmJNW+ S6jCbVbCY9qbEALLYtxzyKlu0x0bG+fwxA== X-Received: by 2002:a17:90a:e982:: with SMTP id v2mr2306669pjy.53.1578536242765; Wed, 08 Jan 2020 18:17:22 -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.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 08 Jan 2020 18:17:22 -0800 (PST) From: Richard Henderson To: qemu-devel@nongnu.org Subject: [PATCH 3/4] vl: Remove useless test in configure_accelerators Date: Thu, 9 Jan 2020 13:17:09 +1100 Message-Id: <20200109021710.1219-4-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::1044 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 result of g_strsplit is never NULL. Signed-off-by: Richard Henderson --- vl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.20.1 diff --git a/vl.c b/vl.c index c9329fe699..887dbfbb5d 100644 --- a/vl.c +++ b/vl.c @@ -2776,7 +2776,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".