Received: by 2002:a89:288:0:b0:1f7:eeee:6653 with SMTP id j8csp434833lqh; Tue, 7 May 2024 03:58:26 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVf0Gzg0E6gqnzJimnMbobYnxVasc3AFw+nxuyQTu0m9aaRMxDk3/JAebA4yGmuEYnCa8w2pEngKWJZqa8fSUx6tPpKVTupoYzuhFMkUQ== X-Google-Smtp-Source: AGHT+IEBk4Ux/m9kIKKoxhFoL2UrUDLruYFckMtXdIGEMojT57+7bA7NzygpF7KJRlt6XMvOK8bu X-Received: by 2002:a05:6870:224a:b0:22e:d40f:e4e2 with SMTP id j10-20020a056870224a00b0022ed40fe4e2mr15423519oaf.5.1715079506470; Tue, 07 May 2024 03:58:26 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1715079506; cv=pass; d=google.com; s=arc-20160816; b=lqYaLsgxaTSkB0dvVeE39RcjfiDOVZFsk5dtA6c7swUEAgS8DtXTlIKWiy2/VLRA30 fWW5u0CM5ExwImo9NAhjj6riqG0bTj6iiOJDgf8femqfIbgYVvV/lQGgI5Ky5kPQJYOK SS3/5VYf9Ul1A0QA7BNPSC7hxbcf6hlMFbw/9yVQCCaGanMXqSYiTJKYVDs7TelStmsF 8m0JXVtXLKoVi82UfMSBXE4iOJCbG++cHyQ6mPGHncji5Id5g5m9kFiuw2JjrlzK0Wub zUVtbng2LX5EWymmsyVW4qDimQr+D4YnyqkX8jD/+7oXEOiWibl7kkJCS79z9go3Q4eT wReA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=9Y1fBVAPgi1ggY16Jg9FosSlnUDSw38hle7KRl0JPAI=; fh=oQbvuNnOUeIuBT5siQdg+euUHNNdn+CeEwAg69/1RSo=; b=HbruPPugTJHufGsikTZMlzLnQ5QBQSACvZZk9VITZdrlnx5qJoL64BR0rloxurBcmd hO57py2d4JRqGZrx1rCDNyfM92JQsKitXZ5l0knj5C7dAABAZeIR+lBW7QVFCjPM+Ol/ GMD0Zxq+lVDKNysGRAc5gwSMY5Fa0alvuEoBN26pa5lyYeOANj3TzChmjmhpuPXPf/+p y+cKklpRtPS2a6kD0P1LRHZ2nzXZaSnftegV+rkRMa882GSw/dz9i9rutnpfwC9mXXIC C+2JI1p2Ir0DnSRwhhXzZ9XxKCVV9Vw+rFVFL6JDOgtIusi4wmUKcHukYargAykTUfVF /dGw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HV1QSW45; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-171110-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171110-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id b62-20020a62cf41000000b006f446816adesi9111788pfg.167.2024.05.07.03.58.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 May 2024 03:58:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-171110-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=HV1QSW45; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-171110-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-171110-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 0AD4C2890DF for ; Tue, 7 May 2024 10:38:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 048E014F9C3; Tue, 7 May 2024 10:38:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="HV1QSW45" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 284ED14F118; Tue, 7 May 2024 10:38:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715078313; cv=none; b=G/5dIToqFLTsXmSfCxU4tih7IY0F31ut6NE3Q25KvqO0lzj5rcv32vUtHWVMa3PCyixEbAqjRE49VadPTG9lrqFV/fP2OB9ZOw9sg4izDJBi3LKWuobfQgMF/vpKYY9qIwgEJ9M9/jAiL2yv3nuQQFSwGVjWPbGNSygThYVY2ko= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715078313; c=relaxed/simple; bh=vYIhtx5//lOdos3hdS0Nwm4Qqd6eR4mkO0PXsZgMCrI=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=sEf0iH1D2tf9dBeudIbLlNB+sTyHpsNfrAr2EfZMiqmyeZYDWajOadpyZau7g5XePs4cYdGdaRH84x+kquIl6TCIwxxnl7HJ9xuZisBpMKSTLhuy4K82viY1zUlCcAHnqvb/3ourS7Dv2ndjJwMmZ/W0ZmzWuThEzOxEsBGKuwg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=HV1QSW45; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id DE52AC4AF66; Tue, 7 May 2024 10:38:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1715078312; bh=vYIhtx5//lOdos3hdS0Nwm4Qqd6eR4mkO0PXsZgMCrI=; h=From:To:Cc:Subject:Date:From; b=HV1QSW45LiJ/gqfbd+PpuHXIezMDosOU8+SJ68cvnUQq8qFnqT9UYplJqfGr3L3oj k9VSFqPNM8gWrEO+Wddf8gIizS/UfAdKwOy3TKSERSiRDef4gYp7s6NLzqvjAZtnHz Rntq9k+HYiBZFlgV76obegc5ahgGN3L7kyTenLf0Y6d3q7ZGf/HJOKi245L9xLUsRG OOV2cZ2uCVy/G0HgVvrAxmmHThNzgSJA6j+2YLMdHO4hb4WputgZQiwF14eTR62Bxc 3TFn2CKmBGQ4SO2ijGSpkfUZ1IyEGwxfeYGakDM10C5nW9zqXMse4c/CWcLm+UKmN/ eLTqyfvb5lPVg== From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Masahiro Yamada Subject: [PATCH 1/3] kconfig: m/nconf: remove dead code to display children of choice members Date: Tue, 7 May 2024 19:37:54 +0900 Message-Id: <20240507103756.1401996-1-masahiroy@kernel.org> X-Mailer: git-send-email 2.40.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit This code previously displayed child symbols of the selected choice member. Since commit 7e3465f63a0a ("kconfig: do not reparent the menu inside a choice block"), choice members never have child symbols, therefore this is dead code. Signed-off-by: Masahiro Yamada --- scripts/kconfig/mconf.c | 5 ----- scripts/kconfig/nconf.c | 5 ----- 2 files changed, 10 deletions(-) diff --git a/scripts/kconfig/mconf.c b/scripts/kconfig/mconf.c index c0969097447d..b33335eba460 100644 --- a/scripts/kconfig/mconf.c +++ b/scripts/kconfig/mconf.c @@ -551,11 +551,6 @@ static void build_conf(struct menu *menu) if (def_menu) { item_add_str(" (%s)", menu_get_prompt(def_menu)); item_add_str(" --->"); - if (def_menu->list) { - indent += 2; - build_conf(def_menu); - indent -= 2; - } } return; } diff --git a/scripts/kconfig/nconf.c b/scripts/kconfig/nconf.c index 9d22b0f3197b..b5b3232f592a 100644 --- a/scripts/kconfig/nconf.c +++ b/scripts/kconfig/nconf.c @@ -857,11 +857,6 @@ static void build_conf(struct menu *menu) item_add_str(" (%s)", menu_get_prompt(def_menu)); item_add_str(" --->"); - if (def_menu->list) { - indent += 2; - build_conf(def_menu); - indent -= 2; - } } return; } -- 2.40.1