Skip to contentSkip to conversation

platform/x86/intel/vsec: Use bool for run_once

PATCH In review Thorsten Blum 2 participants 2 messages Aug 15 – Sep 17

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 platform/x86/intel/vsec: Use bool for run_once

Use bool for run_once in intel_vsec_pci_init().

---
 drivers/platform/x86/intel/vsec.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/platform/x86/intel/vsec.c +2 -2
index 5ab2215fdd7f..f78438d5c936 100644
@@ -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;
 		}
 	}
 
maintainer
#1 lore raw
Quoted 1 line · Thorsten Blum

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.