* [PATCH] platform/x86/intel/vsec: Use bool for run_once
@ 2026-08-15 9:21 Thorsten Blum
0 siblings, 0 replies; only message in thread
From: Thorsten Blum @ 2026-08-15 9:21 UTC (permalink / raw)
To: David E. Box, Hans de Goede, Ilpo Järvinen
Cc: Thorsten Blum, platform-driver-x86, linux-kernel
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;
}
}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-08-15 9:22 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-08-15 9:21 [PATCH] platform/x86/intel/vsec: Use bool for run_once Thorsten Blum
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.