From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mta1.migadu.com (out-37.mta1.migadu.com [95.215.58.37]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 759A833F59E for ; Sat, 15 Aug 2026 09:22:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.37 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786785769; cv=none; b=dU9lZxnf0ADdExsWAkQaPXxI16P5Wsp1MZxGoAxxWnxf4BDREcgukycTx+saKr4MWGwtuYsGYPI7+Q8dh4K3Ypb61NXBJuEgKSemEFkuToThoeSCxWfWrqX+OGv51vyVhNFV1H1fJgQFk+mW6fnVGN6GXrorTNAzY0vDoowYYTo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786785769; c=relaxed/simple; bh=1Jemc0udqo95SvjO+bw28kGUcObykWuv/+fTQVmkRNc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=g3+YZfWXDJt/4q16TW82WjtgPSp/V3rLtckC6aRIbfI4oSTeDSf1lFJ/VGy4NtAYsj7ZpF2kp/bmzCWafUPPrlk+QdYLW/nZ2yN7iqc2ZiVhqBESCOYL91/ChWr5CnQ74hmP8yDCvtP8rU2RzvteEDHOdtJlit78MpTDbtNVQsg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=J3yRglvf; arc=none smtp.client-ip=95.215.58.37 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="J3yRglvf" X-Envelope-To: linux-kernel@vger.kernel.org DKIM-Signature: a=rsa-sha256; bh=1Jemc0udqo95SvjO+bw28kGUcObykWuv/+fTQVmkRNc=; c=simple/simple; d=linux.dev; h=from:to:subject:date:message-id:mime-version:content-type; s=key1; t=1786785765; v=1; x=1787390565; b=J3yRglvfxKnNXZIY+hkjt0VfoMF2tx9iJgV4cvdoqdtfoSsm/rhNxYFMkxr2TtjmEZvV/WH+ W0JE0hxAdN9QIYTxLEloaZk1+2gXb7QwzETTicvdezojOtGEm+V9H3Tg6HnU5zEfSymjQjnM/q/ 2HPLs4fad1m3szbChSnfBRug= X-Envelope-To: linux-kernel@vger.kernel.org Received: from fedora.fritz.box (62.216.208.217) by mta11.migadu.com with ESMTPS id 6ec7395b40bd43da; Sat, 15 Aug 2026 09:22:35 +0000 X-Migadu-Flow: FLOW_OUT From: Thorsten Blum To: "David E. Box" , Hans de Goede , =?UTF-8?q?Ilpo=20J=C3=A4rvinen?= Cc: Thorsten Blum , platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] platform/x86/intel/vsec: Use bool for run_once Date: Sat, 15 Aug 2026 11:21:39 +0200 Message-ID: <20260815092138.91072-3-thorsten.blum@linux.dev> X-Mailer: git-send-email 2.55.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=902; i=thorsten.blum@linux.dev; h=from:subject; bh=1Jemc0udqo95SvjO+bw28kGUcObykWuv/+fTQVmkRNc=; b=owGbwMvMwCUWt7pQ4caZUj3G02pJDFkN+ouMWhVZpKJeh/59slBgn9RJnscv/57ZcaGQXbJU1 I1fkkuso5SFQYyLQVZMkeXBrB8zfEtrKjeZROyEmcPKBDKEgYtTACbiKs3IcMeY72BboYjjmR2t SfV7Js44dG7WPK4NFdaRbecM1wRx8jL8FUg13ilXMWfWS3etq7skVnMqRM8u9Fhatl+bb4Zw+XV RLgA= X-Developer-Key: i=thorsten.blum@linux.dev; a=openpgp; fpr=1D60735E8AEF3BE473B69D84733678FD8DFEEAD4 Content-Transfer-Encoding: 8bit Use bool for run_once in intel_vsec_pci_init(). Signed-off-by: Thorsten Blum --- drivers/platform/x86/intel/vsec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/platform/x86/intel/vsec.c b/drivers/platform/x86/intel/vsec.c index 5ab2215fdd7f..f78438d5c936 100644 --- a/drivers/platform/x86/intel/vsec.c +++ b/drivers/platform/x86/intel/vsec.c @@ -669,7 +669,7 @@ static int intel_vsec_pci_init(struct pci_dev *pdev) { struct vsec_priv *priv = pci_get_drvdata(pdev); const struct intel_vsec_platform_info *info = priv->info; - int run_once = 0; + bool run_once = false; bool found_any = false; int num_caps; @@ -682,7 +682,7 @@ static int intel_vsec_pci_init(struct pci_dev *pdev) if (!run_once) { intel_vsec_skip_missing_dependencies(pdev); - run_once = 1; + run_once = true; } }