Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 964D2C0015E for ; Sun, 16 Jul 2023 00:46:09 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E7432866BD; Sun, 16 Jul 2023 02:39:58 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="lMRgAkzu"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 6BFB4865EF; Sun, 16 Jul 2023 02:38:17 +0200 (CEST) Received: from mail-io1-xd2c.google.com (mail-io1-xd2c.google.com [IPv6:2607:f8b0:4864:20::d2c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 1B471865EF for ; Sun, 16 Jul 2023 02:37:59 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-io1-xd2c.google.com with SMTP id ca18e2360f4ac-7872d448c5aso164145739f.0 for ; Sat, 15 Jul 2023 17:37:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; t=1689467877; x=1692059877; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=RwCNS5aZgNvmb0WfSz23UAj5r/cHFKUHCUpTTM+FfP8=; b=lMRgAkzuxmWqx1jg5hEOX2pxh9B7pb9ISnoOOL2tZECTQuPYJMRaBO2wsc/eGV+4ow Mi3oFiOVTY6I0cXmtslSQ15o2fUf+gpdEiC8saUm+iJzWp7yCff78RCeYZRXWilWXn8E b5YJurkNuak7xb7XHR1g30ZpqfnpqjIAT4hzM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689467877; x=1692059877; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=RwCNS5aZgNvmb0WfSz23UAj5r/cHFKUHCUpTTM+FfP8=; b=QfD65Y+C5y15jxUOWf1b8he8/yVSEGivFLVtSdT5Jy+FAE+zyiDVXjtuJ6UqTjp+iG vCEybZiv8EQy8Fjo936tM76lY+fJHsxijHromTQTPab1eES4KlINomHbKZiBKpw2QJn8 Mqz75JdJBLodZB3/8BoyY+MgcL8pRhGLrxSzZE+iQvUgLFDeWmTfEXwbbv1RwuLJznhs 8XZmF6XFkZx2Jov1otj5rYWQdDMN9vTCe4ipJKXMcLTVevH/d3dQdqCs4Tft/MJoftJW ICdZ60BPsbHD1vaxaJqh6TZmJn8WwFgHn8/LGJ0toU5OoaDdkOwA+KXdVve1k0eP/VyE RE0g== X-Gm-Message-State: ABy/qLZ5VkuX3Z1qsNqiujeyKidG0ftFS0YKzIr0xdmMTVRQ1Q7V0IJf emSDZRW4/U6kpNd4WmVDLBE5i6mZyt+A2FKdqNo= X-Google-Smtp-Source: APBJJlEgfZ9z7h1HA/xhyklhdmkL6WaIod37xL8rYmqn7Wc8KjygpRfNUSfBe7QBNi8EJ/aB/IRQsA== X-Received: by 2002:a05:6602:130e:b0:787:5ca:e24 with SMTP id h14-20020a056602130e00b0078705ca0e24mr9577674iov.3.1689467877809; Sat, 15 Jul 2023 17:37:57 -0700 (PDT) Received: from sjg1.lan (c-73-14-173-85.hsd1.co.comcast.net. [73.14.173.85]) by smtp.gmail.com with ESMTPSA id t3-20020a05663801e300b0042b52dc77e3sm3510512jaq.158.2023.07.15.17.37.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 15 Jul 2023 17:37:57 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Mike Frysinger , Simon Glass Subject: [PATCH v3 49/81] buildman: Use get_alow_missing() directly to avoid var Date: Sat, 15 Jul 2023 18:36:17 -0600 Message-ID: <20230716003718.231903-50-sjg@chromium.org> X-Mailer: git-send-email 2.41.0.455.g037347b96a-goog In-Reply-To: <20230716003718.231903-1-sjg@chromium.org> References: <20230716003718.231903-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean Avoid an unnecessary local variable by moving this code to a function. This fixes the pylint warning about too many local variables. Signed-off-by: Simon Glass --- (no changes since v1) tools/buildman/control.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tools/buildman/control.py b/tools/buildman/control.py index a20fa6286f72..b388d760ba4a 100644 --- a/tools/buildman/control.py +++ b/tools/buildman/control.py @@ -603,10 +603,6 @@ def do_buildman(options, args, toolchains=None, make_func=None, brds=None, options.verbose) return 0 - allow_missing = get_allow_missing(options.allow_missing, - options.no_allow_missing, len(selected), - options.branch) - # Create a new builder with the selected options builder = Builder(toolchains, output_dir, git_dir, options.threads, options.jobs, checkout=True, @@ -622,7 +618,10 @@ def do_buildman(options, args, toolchains=None, make_func=None, brds=None, test_thread_exceptions=test_thread_exceptions, adjust_cfg=calc_adjust_cfg(options.adjust_cfg, options.reproducible_builds), - allow_missing=allow_missing, no_lto=options.no_lto, + allow_missing=get_allow_missing(options.allow_missing, + options.no_allow_missing, + len(selected), options.branch), + no_lto=options.no_lto, reproducible_builds=options.reproducible_builds, force_build = options.force_build, force_build_failures = options.force_build_failures, -- 2.41.0.455.g037347b96a-goog