From patchwork Tue Jul 20 23:26:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 481605 Delivered-To: patch@linaro.org Received: by 2002:a17:907:d92:0:0:0:0 with SMTP id go18csp6006935ejc; Tue, 20 Jul 2021 16:32:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyEcdso6/vXJcCP0Hkcj/QgxoAWBWKRSfLI4x74JL9SIapwcTSrE0AJVX+Y/k1/ByaqEmbS X-Received: by 2002:ab0:2554:: with SMTP id l20mr35129095uan.58.1626823977964; Tue, 20 Jul 2021 16:32:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626823977; cv=none; d=google.com; s=arc-20160816; b=ShLemdZMXLVE7KINjavbc6HKBNLXEWCbVFA+cwlIOiBJemQFtSBrlv9jKMEtFUkobB nniO099lix/xiROrDA0EDzQka5kTMKnQwCO3u0XAkHM3u+8naC7unuHcefCJ4DGDs5+V I2geivMh528B/mmJI3myRC4Ax7lQgoVFf7/ubpwD2L3MImKdCcfAzsWxwsNCQeS9Nt7g MFyr7gGxkNv7QVhNGWwbG9jxctf3Jfj64d8ESGWyUiTrfbJ5B9By/y1AFhlEJzuQ3Mut Xl4soGWRph6lYapVdwWEcpkEVtYVPrEUYu43qvuS1W4Zo3jBOMaF6Rk4LX7cLLPScg3t sKRw== 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=vdy3N2EOhPTMwNJKyEghmnE7ZwP7wniHw5pSOd/v6nU=; b=XD0bCMBHXIIog09CjXSmFqaJvVlUXShPLckjfOkQj/1c7vqGawEekPqbUjI89BBYnl 8mXDCi1Buks70R0VAMQwze6ZLiqINQnS33VDk9nGkogbnMTjCqIXSS5dl3aIkYi9Rry/ NMFd/tm7La7wUXULozGK9xQjP+VECwvqZoTItjIIHCgIoA63ENLkErxe/g5WNpmMSUGy Rm8WUZkrajdKOPYohz0m1MBD9RE2FhbYYL4fTbqeNHhIDC/+7KWfvE6vBbIdCyKo0Z7n Bfmb+2uEwZWn/SsV7bd2sPJIxlrZthF4RqLbpfeF8ZmQcT0PwD9IDWd21WPEEwuS7heg 5pAg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=o3Egk2Cx; 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=fail (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 az13si15292460uab.192.2021.07.20.16.32.57 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 20 Jul 2021 16:32:57 -0700 (PDT) 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=fail header.i=@linaro.org header.s=google header.b=o3Egk2Cx; 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=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:39136 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m5zEP-00060w-7r for patch@linaro.org; Tue, 20 Jul 2021 19:32:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41308) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m5z8s-0003Ck-JD for qemu-devel@nongnu.org; Tue, 20 Jul 2021 19:27:15 -0400 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]:40541) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m5z8r-0005bR-1L for qemu-devel@nongnu.org; Tue, 20 Jul 2021 19:27:14 -0400 Received: by mail-wm1-x334.google.com with SMTP id f8-20020a1c1f080000b029022d4c6cfc37so2386066wmf.5 for ; Tue, 20 Jul 2021 16:27:12 -0700 (PDT) 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=vdy3N2EOhPTMwNJKyEghmnE7ZwP7wniHw5pSOd/v6nU=; b=o3Egk2CxXzvCvlFPINQi1gBYIDAki9ArcjKAkQDdYXhG8bfWrmfLjZ0BkktJ6O1UOD iHjKxh7EDQOkimrfjiwQneg/rZGWbX4GhqItdXQsmV+Njcw6Ii7BubowcQC2CWjwMD8C zoXE1wHw+Tyvp+Rznt0K3FRCxEli40wjP7WfFPULNiMcJQ5OQbUPpnTpYNVWFSQO6d1j M3RkG3d7/tQpCssx/iln+UH9o3zJalZoThKyn5ztMF549zIUq2DEg9yNMe8x16VC0HG1 evYYEgEJCqNTNzTd2AMatSHPEELup6rlsA9YUsMvGC9x40r66y5FgezzFHwRVxCAHYT5 rXiw== 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=vdy3N2EOhPTMwNJKyEghmnE7ZwP7wniHw5pSOd/v6nU=; b=f55haBVok3hQ32zAVwH5gXJl4Zh9IeTAkZcUkWnQWQZQEKWH54LRHT8OLLqLJUkhkS kzfSiq+mkAUWHDnOhBdBHEyoRRBXajuOAdOivaN3WQuAkKbI+YXCnej/kB39Ko3vwIKd IuPWoVi5jFPOKdZyXdtl7V5ci/J9Rfmt/z2nU4DgT/WzimkmLMJcOCS1r+bemvDO0U8W PNN3XL0a5SBkFaNK20lFceKW65BoEFK+oS9X3qaXi9j44REJ6+VUX+S7f1MxMJ0k3nE4 J0wfRIRdBu5goi8kwmBJpEPMWZYRJzzAVVl29XXU/9VuUqhkCB2PgKY0t332wfggKps+ Xi+w== X-Gm-Message-State: AOAM530i9c5U9MP5C8afjqiym6wublA5ugcjkcGvWfsZfhLPTmnY9vqM oDKgWEPynj1/rzkyWM7bjhgKKA== X-Received: by 2002:a05:600c:4f42:: with SMTP id m2mr24049224wmq.52.1626823631691; Tue, 20 Jul 2021 16:27:11 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id e11sm30915462wrt.0.2021.07.20.16.27.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Jul 2021 16:27:08 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 2D8831FF90; Wed, 21 Jul 2021 00:27:04 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v1 04/29] configure: remove needless if leg Date: Wed, 21 Jul 2021 00:26:38 +0100 Message-Id: <20210720232703.10650-5-alex.bennee@linaro.org> X-Mailer: git-send-email 2.32.0.264.g75ae10bc75 In-Reply-To: <20210720232703.10650-1-alex.bennee@linaro.org> References: <20210720232703.10650-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::334; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x334.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action 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: fam@euphon.net, berrange@redhat.com, Richard Henderson , f4bug@amsat.org, stefanha@redhat.com, crosa@redhat.com, pbonzini@redhat.com, =?utf-8?q?Alex_Benn=C3=A9e?= , aurelien@aurel32.net Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" It was pointed out in review of the previous patch that the if leg isn't needed as the for loop will not enter on an empty $device_archs. Fixes: d1d5e9eefd ("configure: allow the selection of alternate config in the build") Signed-off-by: Alex Bennée Reviewed-by: Richard Henderson Message-Id: <20210714182056.25888-5-alex.bennee@linaro.org> --- configure | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) -- 2.32.0.264.g75ae10bc75 diff --git a/configure b/configure index 232c54dcc1..05d96afc17 100755 --- a/configure +++ b/configure @@ -5120,12 +5120,10 @@ if test "$skip_meson" = no; then echo "[properties]" >> $cross # unroll any custom device configs - if test -n "$device_archs"; then - for a in $device_archs; do - eval "c=\$devices_${a}" - echo "${a}-softmmu = '$c'" >> $cross - done - fi + for a in $device_archs; do + eval "c=\$devices_${a}" + echo "${a}-softmmu = '$c'" >> $cross + done test -z "$cxx" && echo "link_language = 'c'" >> $cross echo "[built-in options]" >> $cross