Skip to contentSkip to conversation

acerhdf: remove unneeded semicolon

PATCH In review Jiapeng Chong 2 participants 2 messages Sep 26, 2022 – Sep 27, 2022

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

PATCH 1/1 acerhdf: remove unneeded semicolon

./drivers/platform/x86/acerhdf.c:344:2-3: Unneeded semicolon.

---
 drivers/platform/x86/acerhdf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/platform/x86/acerhdf.c +1 -1
index a7407aa032ba..b48c6c5da147 100644
@@ -341,7 +341,7 @@ static void acerhdf_check_param(struct thermal_zone_device *thermal)
 		pr_err("fanoff temperature (%d) is above fanon temperature (%d), clamping to %d\n",
 		       fanoff, fanon, fanon);
 		fanoff = fanon;
-	};
+	}
 
 	trips[0].temperature = fanon;
 	trips[0].hysteresis  = fanon - fanoff;
Signature · 1 line
2.20.1.7.g153144c
#1 lore raw

Hi,

Quoted 14 lines · Jiapeng Chong

./drivers/platform/x86/acerhdf.c:344:2-3: Unneeded semicolon.

---
 drivers/platform/x86/acerhdf.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/platform/x86/acerhdf.c +0 -0
index a7407aa032ba..b48c6c5da147 100644

drivers/platform/x86/acerhdf.c static void acerhdf_check_param(struct thermal_zone_device *thermal) · line 347

Quoted 8 lines
drivers/platform/x86/acerhdf.c +1 -1
@@ -341,7 +341,7 @@ static void acerhdf_check_param(struct thermal_zone_device *thermal)
 		pr_err("fanoff temperature (%d) is above fanon temperature (%d), clamping to %d\n",
 		       fanoff, fanon, fanon);
 		fanoff = fanon;
-	};
+	}
 
 	trips[0].temperature = fanon;
 	trips[0].hysteresis  = fanon - fanoff;

This patch does not apply on my current for-next branch:

https://git.kernel.org/pub/scm/linux/kernel/git/pdx86/platform-drivers-x86.git/log/?h=for-next

I guess that this might be based on the thermal-zone changes which are going upstream for 6.1 through another tree.

Please rebase + resend this once 6.1-rc1 is out.

Regards,

Hans