Skip to contentSkip to conversation

platform/x86: thinkpad_acpi: Use bool for local is_thinkpad variable

PATCH In review Thorsten Blum 3 participants 3 messages Oct 5 – Oct 12

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

PATCH 1/1 platform/x86: thinkpad_acpi: Use bool for local is_thinkpad variable

Use bool for the local is_thinkpad variable because it only stores a boolean value.

---
 drivers/platform/x86/lenovo/thinkpad_acpi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/platform/x86/lenovo/thinkpad_acpi.c +1 -1
index 1661f070c571..1082c36ae723 100644
@@ -11925,7 +11925,7 @@ static int __must_check __init get_thinkpad_model_data(
 
 static int __init probe_for_thinkpad(void)
 {
-	int is_thinkpad;
+	bool is_thinkpad;
 
 	if (acpi_disabled)
 		return -ENODEV;
maintainer Reviewed-by on v1 1/1
#1 lore raw
Quoted 18 lines · Thorsten Blum

Use bool for the local is_thinkpad variable because it only stores a boolean value.

---
 drivers/platform/x86/lenovo/thinkpad_acpi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/platform/x86/lenovo/thinkpad_acpi.c +0 -0
index 1661f070c571..1082c36ae723 100644
@@ -11925,7 +11925,7 @@ static int __must_check __init 

get_thinkpad_model_data(

static int __init probe_for_thinkpad(void)
{

drivers/platform/x86/lenovo/thinkpad_acpi.c static int __must_check __init get_thinkpad_model_data( · line 11931

Quoted 5 lines
drivers/platform/x86/lenovo/thinkpad_acpi.c +1 -1
-	int is_thinkpad;
+	bool is_thinkpad;
 
 	if (acpi_disabled)
 		return -ENODEV;

Mark

maintainer
#2 lore raw
In reply to Thorsten Blum
Quoted 2 lines · Thorsten Blum

Use bool for the local is_thinkpad variable because it only stores a boolean value.

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: thinkpad_acpi: Use bool for local is_thinkpad variable

      commit: acf32e5497af0bfaaa68b30cecab18aaea56a31b

--
i.