[PATCH] platform/x86/intel/vsec: Use bool for run_once

Thorsten Blum posted 1 patch 1 month, 2 weeks ago
drivers/platform/x86/intel/vsec.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
[PATCH] platform/x86/intel/vsec: Use bool for run_once
Posted by Thorsten Blum 1 month, 2 weeks ago
Use bool for run_once in intel_vsec_pci_init().

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
---
 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;
 		}
 	}
Re: [PATCH] platform/x86/intel/vsec: Use bool for run_once
Posted by Ilpo Järvinen 1 week, 4 days ago
On Sat, 15 Aug 2026 11:21:39 +0200, Thorsten Blum wrote:

> Use bool for run_once in intel_vsec_pci_init().

Thank you for your contribution, it has been applied to my local
review-ilpo-next branch. Note it will show up in the public
platform-drivers-x86/review-ilpo-next branch only once I've pushed my
local branch there, which might take a while.

FYI [if applicable to your patch], as per Linus' policy change, also
fixes are mostly routed through for-next unless the fix is for a
commit introduced in the most recent cycle or is clearly a regression
fix.

The list of commits applied:
[1/1] platform/x86/intel/vsec: Use bool for run_once
      commit: 1ce2e8ee4ca47c0d4b788fbc791cdf82fcc98ef5

--
 i.