Received: by 2002:ab2:7b86:0:b0:1f7:5705:b850 with SMTP id q6csp552529lqh; Sat, 4 May 2024 11:35:36 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV0FlCTZjbndtaGEkLcfXVXYF3yhqfr/aXreiroh+f6TeFFjKkm0YoLAtccejbM3uaqncTKlf1tDEPhNFbA7ky5zlC0faWwA4IHYbcWKg== X-Google-Smtp-Source: AGHT+IHoxU9y+x87KD6cjh7nnEuH4dkWVH8706NJuDKNhBy0x64kCjSZP8rLlTuNx4AnKggMiebC X-Received: by 2002:a05:620a:2a09:b0:790:f573:3fce with SMTP id o9-20020a05620a2a0900b00790f5733fcemr7706015qkp.4.1714847736276; Sat, 04 May 2024 11:35:36 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1714847736; cv=pass; d=google.com; s=arc-20160816; b=ywIccCXQEgUuwghZ0OfaJTBduiVAQgXAGzfhziME/l1DvbKdIaNfDvmkou18PGDu+7 oK8f13i4dO0pkocGkI50JuOUGY24mqRFJ3ciTpREuRjFj7sm6UQGxLx1i4hS5h9WqF6c Ym4jOxSoRc1L/mon4AbTwTV1t9agkdEMKAyUDZZoN7ya3rtf88QUdlHI4oYiwYvRPMQ+ xz3Q6hr/tJjQojBnV0DbKJ5WP8vp9/Z/OGcWEfFD7bx1hr5ftjHcut9DuY0hfEVOI9yz oYcc0AK+SPeWuteR956x5dc4GCQhwLqkjkyafGqaZvjWnEvgG+rfPwqHTEVaGF/IeiJ7 8Q1A== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=OWikacmHB4dlr5imGmiSO4oedPR7fLHdo20yaDBXp44=; fh=oQbvuNnOUeIuBT5siQdg+euUHNNdn+CeEwAg69/1RSo=; b=MAsvyK65bEFkwCJ8LvJYLDXtu7v9uM7nPDptmLAyLSpyXTtEqrmtQle+pJJK1CkP4x pQqrVeDBSyW6E6nEu8gEHzbKNW0l7WWkozCW1V8N8chmph4LVpFki4RxMoEPyIZp3tgo Eer1pqlLAmk2POrTDCSim4QO3gPaRb/qk16u3HqDvb1nI6CJtlvBztPvJIUXWiY5qekR oqbzm4T33p5153yo6hDZA3iTRPUXx4ROwiwmbIc49Y653DDLfGbLvDmNnHPu4s07LOvV ao118BKKt6L7CI7Rp/37DUi44/jH4ekkfLVUIxwRoGDIsTzIYi3uOkK1BDy5p2SXQ3IQ AzaA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="YB7W4a/r"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-168794-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168794-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id c24-20020a37e118000000b007928e9a37c2si1060596qkm.520.2024.05.04.11.35.36 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 04 May 2024 11:35:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-168794-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="YB7W4a/r"; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-168794-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-168794-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 02B8B1C20F29 for ; Sat, 4 May 2024 18:35:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8B6B28593D; Sat, 4 May 2024 18:34:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="YB7W4a/r" 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 B5EF685650; Sat, 4 May 2024 18:34:18 +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=1714847658; cv=none; b=lG9jaByQ92ofqpwckgEmmptPhT5RuBHHN9O+Jvj0MLSH2zu1I9DgozJmgvmX8pPeYXPBTihf3U2PGUrx6A6/rCa4HmEUXKmP0UNw5MLuPGRuam7+cEQWvM6UQGIsRn8DJLcfzcqkkcwNnwMQiXguzzV9AF5EWK8I9uRYd/GDQWU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1714847658; c=relaxed/simple; bh=n3kfPRVCQ5t0c9SyMZT7tSS34HDAWc2ENT6kh3eZwfY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Rp9fBdp/PYZnj7mdFjOMjHGWPvk5jc/dWbVe9psYxfWLyyYArvnBvHERsD4DdqbpAMW+oaDn2f97JBvXr7iygj7MiuiZ2Tp/OkiYOm6TUOyTFnUDAUEcARrKH+Lo6C4hzTUqg+PplMkIzujI+LRHrYeZkmMEFvqi9dFzBM0Pj4Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=YB7W4a/r; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 58C21C4AF19; Sat, 4 May 2024 18:34:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1714847658; bh=n3kfPRVCQ5t0c9SyMZT7tSS34HDAWc2ENT6kh3eZwfY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=YB7W4a/r94YbuqIOmnzBSU2yP7Q4ojM/kpmfCjsl0HLqlgB++Q10eefoGmjqnm0fa kVt67HRAQz3OoCGB+3i0QfKFtlXc+LQSAMaYOaZIKrSsaHT/rEAabBm1VcKFccCahW tBEM4Kf3+EoDM67LGHF16Vfwn/SiJYBhBh4c2wwapkyxFWJoQj8V+UUx1cG9T1H7Uq szJzjQf6/yPJzdXE146n/3PYjassqfrx6f4xIKT8W7+6yrpFccNeKC/Pbgk04tm+9R +3zaWheqKamBeSjqzjv2PgaXoSKy+DUIWsS+0jtPzXEFA3LP29wfKQoqm6BCt42jU7 Y7PA4vd3mTc3g== From: Masahiro Yamada To: linux-kbuild@vger.kernel.org Cc: linux-kernel@vger.kernel.org, Masahiro Yamada Subject: [PATCH 08/10] kconfig: turn conf_choice() into void function Date: Sun, 5 May 2024 03:33:31 +0900 Message-Id: <20240504183333.2031860-8-masahiroy@kernel.org> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240504183333.2031860-1-masahiroy@kernel.org> References: <20240504183333.2031860-1-masahiroy@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The return value of conf_choice() is not used. Signed-off-by: Masahiro Yamada --- scripts/kconfig/conf.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/scripts/kconfig/conf.c b/scripts/kconfig/conf.c index 0156ca13f949..8ad2c52d9b1f 100644 --- a/scripts/kconfig/conf.c +++ b/scripts/kconfig/conf.c @@ -446,7 +446,7 @@ static int conf_sym(struct menu *menu) } } -static int conf_choice(struct menu *menu) +static void conf_choice(struct menu *menu) { struct symbol *sym, *def_sym; struct menu *child; @@ -459,19 +459,18 @@ static int conf_choice(struct menu *menu) sym_calc_value(sym); switch (sym_get_tristate_value(sym)) { case no: - return 1; case mod: - return 0; + return; case yes: break; } } else { switch (sym_get_tristate_value(sym)) { case no: - return 1; + return; case mod: printf("%*s%s\n", indent - 1, "", menu_get_prompt(menu)); - return 0; + return; case yes: break; } @@ -551,7 +550,7 @@ static int conf_choice(struct menu *menu) continue; } sym_set_tristate_value(child->sym, yes); - return 1; + return; } } -- 2.40.1