Thread (25 messages) 25 messages, 3 authors, 2025-09-03

Re: [PATCH v3 04/12] cpufreq: longhaul: Use scope-based cleanup helper

From: Krzysztof Kozlowski <krzk@kernel.org>
Date: 2025-09-02 15:58:24
Also in: dri-devel, imx, intel-gfx, linux-acpi, linux-arm-kernel, linux-omap, linux-pm, lkml

On 01/09/2025 10:57, Zihuan Zhang wrote:
quoted hunk ↗ jump to hunk
 static void __exit longhaul_exit(void)
 {
-	struct cpufreq_policy *policy = cpufreq_cpu_get(0);
+	struct cpufreq_policy *policy __free(put_cpufreq_policy) = cpufreq_cpu_get(0);
 	int i;
 
 	for (i = 0; i < numscales; i++) {
@@ -968,7 +968,6 @@ static void __exit longhaul_exit(void)
 		}
 	}
 
-	cpufreq_cpu_put(policy);
You are not improving any code here.


Best regards,
Krzysztof

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help